Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Phan <darkneter@gmail.com>2011-06-21 01:55:58 +0400
committerJohn Phan <darkneter@gmail.com>2011-06-21 01:55:58 +0400
commit0e50e65c3c28f8e8db762901d851caa8ee534276 (patch)
tree1fae4bcf41528e0ac4637e47aa2c80131dc3c1f4
parent5a00d2f14022a060ea84f5e198a65bc765ea2b28 (diff)
fixed action button
-rw-r--r--io_export_unreal_psk_psa.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/io_export_unreal_psk_psa.py b/io_export_unreal_psk_psa.py
index a02357d6..9ec9a75a 100644
--- a/io_export_unreal_psk_psa.py
+++ b/io_export_unreal_psk_psa.py
@@ -2035,13 +2035,17 @@ class OBJECT_OT_UTSelectedFaceSmooth(bpy.types.Operator):
class OBJECT_OT_DeleteActionSet(bpy.types.Operator):
bl_idname = "object.deleteactionset" # XXX, name???
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):
if len(bpy.data.actions) > 0:
- bpy.data.actions[0].user_clear()
- bpy.data.actions.remove( bpy.data.actions[0])
- return{'FINISHED'}
+ for action in bpy.data.actions:
+ print("Action:",action.name)
+ action.user_clear()
+ break
+ #bpy.data.actions.remove(act)
+ print("finish")
+ return{'FINISHED'}
class OBJECT_OT_MeshClearWeights(bpy.types.Operator):
bl_idname = "object.meshclearweights" # XXX, name???