Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_relations.c
| Show First 20 Lines • Show All 610 Lines • ▼ Show 20 Lines | void OBJECT_OT_parent_clear(wmOperatorType *ot) | ||||
| ot->name = "Clear Parent"; | ot->name = "Clear Parent"; | ||||
| ot->description = "Clear the object's parenting"; | ot->description = "Clear the object's parenting"; | ||||
| ot->idname = "OBJECT_OT_parent_clear"; | ot->idname = "OBJECT_OT_parent_clear"; | ||||
| /* api callbacks */ | /* api callbacks */ | ||||
| ot->invoke = WM_menu_invoke; | ot->invoke = WM_menu_invoke; | ||||
| ot->exec = parent_clear_exec; | ot->exec = parent_clear_exec; | ||||
| ot->poll = ED_operator_object_active_editable; | |||||
| /* flags */ | /* flags */ | ||||
| ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ||||
| ot->prop = RNA_def_enum(ot->srna, "type", prop_clear_parent_types, CLEAR_PARENT_ALL, "Type", ""); | ot->prop = RNA_def_enum(ot->srna, "type", prop_clear_parent_types, CLEAR_PARENT_ALL, "Type", ""); | ||||
| } | } | ||||
| /* ******************** Make Parent Operator *********************** */ | /* ******************** Make Parent Operator *********************** */ | ||||
| ▲ Show 20 Lines • Show All 2,130 Lines • Show Last 20 Lines | |||||