UI: remove delete redo panel

Since the option is now hidden from the UI, add to the object menu
(without this the key binding isn't discoverable).
This commit is contained in:
Campbell Barton 2018-09-05 18:01:55 +10:00
parent 7f95ea6f78
commit 66f8a2d67e
Notes: blender-bot 2023-02-14 05:57:06 +01:00
Referenced by issue #54858, Command Settings Cleanup
2 changed files with 4 additions and 1 deletions

View File

@ -1599,6 +1599,7 @@ class VIEW3D_MT_object(Menu):
layout.separator()
layout.operator("object.delete", text="Delete...").use_global = False
layout.operator("object.delete", text="Delete Global...").use_global = True
class VIEW3D_MT_object_animation(Menu):

View File

@ -1400,7 +1400,9 @@ void OBJECT_OT_delete(wmOperatorType *ot)
/* flags */
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
RNA_def_boolean(ot->srna, "use_global", 0, "Delete Globally", "Remove object from all scenes");
PropertyRNA *prop;
prop = RNA_def_boolean(ot->srna, "use_global", 0, "Delete Globally", "Remove object from all scenes");
RNA_def_property_flag(prop, PROP_HIDDEN | PROP_SKIP_SAVE);
}
/**************************** Copy Utilities ******************************/