Skip to content
Snippets Groups Projects
Commit 0e50e65c authored by John Phan's avatar John Phan
Browse files

fixed action button

parent 5a00d2f1
No related branches found
No related tags found
No related merge requests found
...@@ -2035,13 +2035,17 @@ class OBJECT_OT_UTSelectedFaceSmooth(bpy.types.Operator): ...@@ -2035,13 +2035,17 @@ class OBJECT_OT_UTSelectedFaceSmooth(bpy.types.Operator):
class OBJECT_OT_DeleteActionSet(bpy.types.Operator): class OBJECT_OT_DeleteActionSet(bpy.types.Operator):
bl_idname = "object.deleteactionset" # XXX, name??? bl_idname = "object.deleteactionset" # XXX, name???
bl_label = "Delete Action Set" bl_label = "Delete Action Set"
__doc__ = """It will remove the first top of the index of the action list. It used for unable to delete action set.""" __doc__ = """It will remove the first top of the index of the action list. Reload file to remove it. It used for unable to delete action set. """
def invoke(self, context, event): def invoke(self, context, event):
if len(bpy.data.actions) > 0: if len(bpy.data.actions) > 0:
bpy.data.actions[0].user_clear() for action in bpy.data.actions:
bpy.data.actions.remove( bpy.data.actions[0]) print("Action:",action.name)
return{'FINISHED'} action.user_clear()
break
#bpy.data.actions.remove(act)
print("finish")
return{'FINISHED'}
class OBJECT_OT_MeshClearWeights(bpy.types.Operator): class OBJECT_OT_MeshClearWeights(bpy.types.Operator):
bl_idname = "object.meshclearweights" # XXX, name??? bl_idname = "object.meshclearweights" # XXX, name???
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment