remove 'Reset' button from operator UI, instead have 'Restore Defaults' in preset menu.
If this is needed we can add the reset button back as an option for certain operators, but AFAICS any operator with enough settings that resetting them all would be annoying - could have presets enabled.
This commit is contained in:
@@ -554,6 +554,12 @@ class WM_MT_operator_presets(Menu):
|
||||
|
||||
def draw(self, context):
|
||||
self.operator = context.active_operator.bl_idname
|
||||
|
||||
# dummy 'default' menu item
|
||||
layout = self.layout
|
||||
layout.operator("wm.operator_defaults")
|
||||
layout.seperator()
|
||||
|
||||
Menu.draw_preset(self, context)
|
||||
|
||||
@property
|
||||
|
Reference in New Issue
Block a user