Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/mesh/editmesh_loopcut.c
| Show First 20 Lines • Show All 866 Lines • ▼ Show 20 Lines | void MESH_OT_loopcut(wmOperatorType *ot) | ||||
| prop = RNA_def_int(ot->srna, "number_cuts", 1, 1, 1000000, "Number of Cuts", "", 1, 100); | prop = RNA_def_int(ot->srna, "number_cuts", 1, 1, 1000000, "Number of Cuts", "", 1, 100); | ||||
| /* avoid re-using last var because it can cause _very_ high poly meshes and annoy users (or worse crash) */ | /* avoid re-using last var because it can cause _very_ high poly meshes and annoy users (or worse crash) */ | ||||
| RNA_def_property_flag(prop, PROP_SKIP_SAVE); | RNA_def_property_flag(prop, PROP_SKIP_SAVE); | ||||
| prop = RNA_def_float(ot->srna, "smoothness", 0.0f, -1e3f, 1e3f, | prop = RNA_def_float(ot->srna, "smoothness", 0.0f, -1e3f, 1e3f, | ||||
| "Smoothness", "Smoothness factor", -SUBD_SMOOTH_MAX, SUBD_SMOOTH_MAX); | "Smoothness", "Smoothness factor", -SUBD_SMOOTH_MAX, SUBD_SMOOTH_MAX); | ||||
| RNA_def_property_flag(prop, PROP_SKIP_SAVE); | RNA_def_property_flag(prop, PROP_SKIP_SAVE); | ||||
| WM_operatortype_props_advanced(ot); | |||||
| prop = RNA_def_property(ot->srna, "falloff", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(ot->srna, "falloff", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_items(prop, rna_enum_proportional_falloff_curve_only_items); | RNA_def_property_enum_items(prop, rna_enum_proportional_falloff_curve_only_items); | ||||
| RNA_def_property_enum_default(prop, PROP_INVSQUARE); | RNA_def_property_enum_default(prop, PROP_INVSQUARE); | ||||
| RNA_def_property_ui_text(prop, "Falloff", "Falloff type the feather"); | RNA_def_property_ui_text(prop, "Falloff", "Falloff type the feather"); | ||||
| RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_CURVE); /* Abusing id_curve :/ */ | RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_CURVE); /* Abusing id_curve :/ */ | ||||
| prop = RNA_def_int(ot->srna, "edge_index", -1, -1, INT_MAX, "Edge Index", "", 0, INT_MAX); | prop = RNA_def_int(ot->srna, "edge_index", -1, -1, INT_MAX, "Edge Index", "", 0, INT_MAX); | ||||
| RNA_def_property_flag(prop, PROP_HIDDEN); | RNA_def_property_flag(prop, PROP_HIDDEN); | ||||
| #ifdef USE_LOOPSLIDE_HACK | #ifdef USE_LOOPSLIDE_HACK | ||||
| prop = RNA_def_boolean_array(ot->srna, "mesh_select_mode_init", 3, NULL, "", ""); | prop = RNA_def_boolean_array(ot->srna, "mesh_select_mode_init", 3, NULL, "", ""); | ||||
| RNA_def_property_flag(prop, PROP_HIDDEN); | RNA_def_property_flag(prop, PROP_HIDDEN); | ||||
| #endif | #endif | ||||
| } | } | ||||