[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4278] trunk/py/scripts/addons/rigify/ utils.py: Rigify bugfix: deleted WGT objects now get properly replaced on generation.

Nathan Vegdahl cessen at cessen.com
Fri Feb 15 16:30:45 CET 2013


Revision: 4278
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4278
Author:   cessen
Date:     2013-02-15 15:30:45 +0000 (Fri, 15 Feb 2013)
Log Message:
-----------
Rigify bugfix: deleted WGT objects now get properly replaced on generation.

WGT objects were sticking around even when the user deleted them
since they were being used by the bones for visual appearance.  This
meant that if the user deleted the WGT objects in order for Rigify
to regenerate them the next time around, Rigify would fail.

Rigify now checks for this circumstance and handles it appropriately.

Modified Paths:
--------------
    trunk/py/scripts/addons/rigify/utils.py

Modified: trunk/py/scripts/addons/rigify/utils.py
===================================================================
--- trunk/py/scripts/addons/rigify/utils.py	2013-02-15 15:14:24 UTC (rev 4277)
+++ trunk/py/scripts/addons/rigify/utils.py	2013-02-15 15:30:45 UTC (rev 4278)
@@ -281,6 +281,7 @@
         # This is necessary so we can then create the object without
         # name conflicts.
         if obj_name in bpy.data.objects:
+            bpy.data.objects[obj_name].user_clear()
             bpy.data.objects.remove(bpy.data.objects[obj_name])
         
         # Create mesh object



More information about the Bf-extensions-cvs mailing list