replace operator options bl_undo and bl_register with bl_options
eg.
bl_options = {'REGISTER', 'UNDO', 'BLOCKING', 'GRAB_POINTER'}
This didnt exist when operators were originally wrapped.
This commit is contained in:
@@ -586,8 +586,7 @@ class AddHuman(bpy.types.Operator):
|
||||
'''Add an advanced human metarig base'''
|
||||
bl_idname = "object.armature_human_advanced_add"
|
||||
bl_label = "Add Humanoid (advanced metarig)"
|
||||
bl_register = True
|
||||
bl_undo = True
|
||||
bl_options = {'REGISTER', 'UNDO'}
|
||||
|
||||
def execute(self, context):
|
||||
bpy.ops.object.armature_add()
|
||||
|
||||
Reference in New Issue
Block a user