[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [51863] trunk/blender/source/blender/ blenkernel/intern/object.c: Bugfix #33074

Ton Roosendaal ton at blender.org
Sun Nov 4 13:13:30 CET 2012


Revision: 51863
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=51863
Author:   ton
Date:     2012-11-04 12:13:26 +0000 (Sun, 04 Nov 2012)
Log Message:
-----------
Bugfix #33074

In armature editmode, with mirroring, after duplication of a bone and using
the Wkey "flip names" you get a crash. Code for naming was accessing a NULL
in the bPose channel - not set until leaving editmode.

Thanks to Ben Batt for tackling the issue :)

Modified Paths:
--------------
    trunk/blender/source/blender/blenkernel/intern/object.c

Modified: trunk/blender/source/blender/blenkernel/intern/object.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/object.c	2012-11-04 11:57:49 UTC (rev 51862)
+++ trunk/blender/source/blender/blenkernel/intern/object.c	2012-11-04 12:13:26 UTC (rev 51863)
@@ -1783,7 +1783,7 @@
 	
 	/* Make sure the bone is still valid */
 	pchan = BKE_pose_channel_find_name(par->pose, ob->parsubstr);
-	if (!pchan) {
+	if (!pchan || !pchan->bone) {
 		printf("Object %s with Bone parent: bone %s doesn't exist\n", ob->id.name + 2, ob->parsubstr);
 		unit_m4(mat);
 		return;




More information about the Bf-blender-cvs mailing list