[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [912] contrib/py/scripts/addons/ space_view3d_copy_attributes.py: temporary hack to get it working...

Campbell Barton ideasman42 at gmail.com
Fri Aug 13 18:37:24 CEST 2010


registering python scripts shouldn't be needed anymore

On Thu, Aug 12, 2010 at 11:04 PM, bassam kurdali
<bkurdali at freefactory.org> wrote:
> Revision: 912
>          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=912
> Author:   bassamk
> Date:     2010-08-12 15:04:09 +0200 (Thu, 12 Aug 2010)
>
> Log Message:
> -----------
> temporary hack to get it working...
>
> 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-12 08:31:39 UTC (rev 911)
> +++ contrib/py/scripts/addons/space_view3d_copy_attributes.py   2010-08-12 13:04:09 UTC (rev 912)
> @@ -350,15 +350,18 @@
>
>  def register():
>
> -    for op in object_ops:
> -        bpy.types.unregister(op)
> -    for op in pose_ops:
> -        bpy.types.unregister(op)
> +    if False:
> +        for op in object_ops:
> +            bpy.types.unregister(op)
> +        for op in pose_ops:
> +            bpy.types.unregister(op)
>
>     for op in object_ops:
>         bpy.types.register(op)
>     for op in pose_ops:
>         bpy.types.register(op)
> +    bpy.types.unregister(VIEW3D_MT_copypopup)
> +    bpy.types.unregister(VIEW3D_MT_posecopypopup)
>
>     bpy.types.register(VIEW3D_MT_copypopup)
>     bpy.types.register(VIEW3D_MT_posecopypopup)
>
>
> _______________________________________________
> Bf-extensions-cvs mailing list
> Bf-extensions-cvs at blender.org
> http://lists.blender.org/mailman/listinfo/bf-extensions-cvs
>



-- 
- Campbell


More information about the Bf-extensions-cvs mailing list