[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33083] trunk/blender/source/blender/ editors/space_view3d/drawarmature.c: Bugfix (IRC report)

Ton Roosendaal ton at blender.org
Mon Nov 15 12:45:54 CET 2010


Revision: 33083
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=33083
Author:   ton
Date:     2010-11-15 12:45:54 +0100 (Mon, 15 Nov 2010)

Log Message:
-----------
Bugfix (IRC report)

Bone drawing code failed to check the correnct parent pointer, causing
NULL pointer to be read. Thanks Wahooney!

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_view3d/drawarmature.c

Modified: trunk/blender/source/blender/editors/space_view3d/drawarmature.c
===================================================================
--- trunk/blender/source/blender/editors/space_view3d/drawarmature.c	2010-11-15 10:48:48 UTC (rev 33082)
+++ trunk/blender/source/blender/editors/space_view3d/drawarmature.c	2010-11-15 11:45:54 UTC (rev 33083)
@@ -1772,7 +1772,7 @@
 			
 			if ((bone) && !(bone->flag & (BONE_HIDDEN_P|BONE_HIDDEN_PG))) {
 				if (bone->layer & arm->layer) {
-					if ((do_dashed & 1) && (bone->parent)) {
+					if ((do_dashed & 1) && (pchan->parent)) {
 						/* Draw a line from our root to the parent's tip 
 						 *	- only if V3D_HIDE_HELPLINES is enabled...
 						 */





More information about the Bf-blender-cvs mailing list