[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [905] contrib/py/scripts/addons/ space_view3d_copy_attributes.py: still something going on with registering/ unregistering, need to find the solution..
bassam kurdali
bkurdali at freefactory.org
Tue Aug 10 23:25:48 CEST 2010
Revision: 905
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=905
Author: bassamk
Date: 2010-08-10 23:25:48 +0200 (Tue, 10 Aug 2010)
Log Message:
-----------
still something going on with registering/unregistering, need to find the solution..
Modified Paths:
--------------
contrib/py/scripts/addons/space_view3d_copy_attributes.py
Modified: contrib/py/scripts/addons/space_view3d_copy_attributes.py
===================================================================
--- contrib/py/scripts/addons/space_view3d_copy_attributes.py 2010-08-10 21:23:04 UTC (rev 904)
+++ contrib/py/scripts/addons/space_view3d_copy_attributes.py 2010-08-10 21:25:48 UTC (rev 905)
@@ -339,13 +339,8 @@
def register():
- if False:
- for op in object_ops:
- bpy.types.register(op)
- for op in pose_ops:
- bpy.types.register(op)
- bpy.types.register(VIEW3D_MT_copypopup)
- bpy.types.register(VIEW3D_MT_posecopypopup)
+ bpy.types.register(VIEW3D_MT_copypopup)
+ bpy.types.register(VIEW3D_MT_posecopypopup)
km = bpy.context.manager.keyconfigs['Blender'].keymaps['Object Mode']
kmi = km.items.add('wm.call_menu','C','PRESS',ctrl=True)
kmi.properties.name = 'VIEW3D_MT_copypopup'
@@ -359,15 +354,11 @@
def unregister():
- if False:
- bpy.types.unregister(VIEW3D_MT_copypopup)
- bpy.types.unregister(VIEW3D_MT_posecopypopup)
- for op in object_ops:
- bpy.types.unregister(op)
- for op in pose_ops:
- bpy.types.unregister(op)
+ bpy.types.unregister(VIEW3D_MT_copypopup)
+ bpy.types.unregister(VIEW3D_MT_posecopypopup)
for item in bpy.context.manager.keyconfigs['Blender'].keymaps['Pose'].items:
- if item.name == 'Call Menu' and item.properties.idname=='wm.call_menu' and item.properties.name == 'VIEW3D_MT_posecopypopup':
+ print(dir(item))
+ if item.name == 'Call Menu' and item.idname=='wm.call_menu' and item.properties.name == 'VIEW3D_MT_posecopypopup':
item.idname='pose.copy'
break
More information about the Bf-extensions-cvs
mailing list