[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [48358] trunk/blender/source/blender/ editors/armature/editarmature.c: fix [#31940] crash with automatic weights

Campbell Barton ideasman42 at gmail.com
Thu Jun 28 09:13:14 CEST 2012


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");




More information about the Bf-blender-cvs mailing list