[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2047] trunk/py/scripts/addons/ io_export_unreal_psk_psa.py: fixed action button
John Phan
darkneter at gmail.com
Mon Jun 20 23:55:59 CEST 2011
Revision: 2047
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2047
Author: darknet
Date: 2011-06-20 21:55:58 +0000 (Mon, 20 Jun 2011)
Log Message:
-----------
fixed action button
Modified Paths:
--------------
trunk/py/scripts/addons/io_export_unreal_psk_psa.py
Modified: trunk/py/scripts/addons/io_export_unreal_psk_psa.py
===================================================================
--- trunk/py/scripts/addons/io_export_unreal_psk_psa.py 2011-06-20 21:29:36 UTC (rev 2046)
+++ trunk/py/scripts/addons/io_export_unreal_psk_psa.py 2011-06-20 21:55:58 UTC (rev 2047)
@@ -2035,13 +2035,17 @@
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???
More information about the Bf-extensions-cvs
mailing list