[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [59939] trunk/blender/source/blender/ editors/armature/armature_utils.c: Fix #36663, Bone properties sometimes vanish when mousing into properties window.

Lukas Toenne lukas.toenne at googlemail.com
Mon Sep 9 08:31:31 CEST 2013


Revision: 59939
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=59939
Author:   lukastoenne
Date:     2013-09-09 06:31:30 +0000 (Mon, 09 Sep 2013)
Log Message:
-----------
Fix #36663, Bone properties sometimes vanish when mousing into properties window.
Active edit bone was cleared from armature after each file save, even though the edit data is not actually freed then. Without the active edit bone the poll functions for bone panels fail.

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

Modified: trunk/blender/source/blender/editors/armature/armature_utils.c
===================================================================
--- trunk/blender/source/blender/editors/armature/armature_utils.c	2013-09-09 05:42:26 UTC (rev 59938)
+++ trunk/blender/source/blender/editors/armature/armature_utils.c	2013-09-09 06:31:30 UTC (rev 59939)
@@ -488,7 +488,6 @@
 			/* don't change active selection, this messes up separate which uses
 			 * editmode toggle and can separate active bone which is de-selected originally */
 			/* newBone->flag |= BONE_SELECTED; */ /* important, editbones can be active with only 1 point selected */
-			arm->act_edbone = NULL;
 			arm->act_bone = newBone;
 		}
 		newBone->roll = 0.0f;
@@ -575,6 +574,7 @@
 		}
 		MEM_freeN(arm->edbo);
 		arm->edbo = NULL;
+		arm->act_edbone = NULL;
 	}
 }
 




More information about the Bf-blender-cvs mailing list