Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/mesh/editmesh_loopcut.c
| Show First 20 Lines • Show All 757 Lines • ▼ Show 20 Lines | void MESH_OT_loopcut(wmOperatorType *ot) | ||||
| 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, | RNA_def_property_translation_context(prop, | ||||
| BLT_I18NCONTEXT_ID_CURVE_LEGACY); /* Abusing id_curve :/ */ | BLT_I18NCONTEXT_ID_CURVE_LEGACY); /* Abusing id_curve :/ */ | ||||
| /* For redo only. */ | /* For redo only. */ | ||||
| prop = RNA_def_int(ot->srna, "object_index", -1, -1, INT_MAX, "Object Index", "", 0, INT_MAX); | prop = RNA_def_int(ot->srna, "object_index", -1, -1, INT_MAX, "Object Index", "", 0, INT_MAX); | ||||
| RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_MESH); | |||||
| RNA_def_property_flag(prop, PROP_HIDDEN); | RNA_def_property_flag(prop, PROP_HIDDEN); | ||||
| 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 | ||||
| } | } | ||||