Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_modifier.c
| Context not available. | |||||
| /* properties */ | /* properties */ | ||||
| prop = RNA_def_enum(ot->srna, "type", modifier_type_items, eModifierType_Subsurf, "Type", ""); | prop = RNA_def_enum(ot->srna, "type", modifier_type_items, eModifierType_Subsurf, "Type", ""); | ||||
| RNA_def_enum_funcs(prop, modifier_add_itemf); | RNA_def_property_flag(prop, PROP_HIDDEN); | ||||
| RNA_def_enum_funcs(prop, modifier_add_itemf); | |||||
| ot->prop = prop; | ot->prop = prop; | ||||
| } | } | ||||
| Context not available. | |||||
| static void edit_modifier_properties(wmOperatorType *ot) | static void edit_modifier_properties(wmOperatorType *ot) | ||||
| { | { | ||||
| RNA_def_string(ot->srna, "modifier", "", MAX_NAME, "Modifier", "Name of the modifier to edit"); | PropertyRNA *prop; | ||||
| prop = RNA_def_string(ot->srna, "modifier", "", MAX_NAME, "Modifier", "Name of the modifier to edit"); | |||||
| RNA_def_property_flag(prop, PROP_HIDDEN); | |||||
| } | } | ||||
| static int edit_modifier_invoke_properties(bContext *C, wmOperator *op) | static int edit_modifier_invoke_properties(bContext *C, wmOperator *op) | ||||
| Context not available. | |||||