Revision: 48358
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=48358
Author:   campbellbarton
Date:     2012-06-28 07:13:03 +0000 (Thu, 28 Jun 2012)
Log Message:
-----------
fix [#31940] crash with automatic weights

Modified Paths:
--------------
    trunk/blender/source/blender/editors/armature/editarmature.c

Modified: trunk/blender/source/blender/editors/armature/editarmature.c
===================================================================
--- trunk/blender/source/blender/editors/armature/editarmature.c        
2012-06-28 06:22:47 UTC (rev 48357)
+++ trunk/blender/source/blender/editors/armature/editarmature.c        
2012-06-28 07:13:03 UTC (rev 48358)
@@ -4828,6 +4828,9 @@
        if (numbones == 0)
                return;
        
+       if (ED_vgroup_data_create(ob->data) == FALSE)
+               return;
+
        /* create an array of pointer to bones that are skinnable
         * and fill it with all of the skinnable bones */
        bonelist = MEM_callocN(numbones * sizeof(Bone *), "bonelist");

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to