[Bf-blender-cvs] [a930fb1] master: Fix T37751: Crash subdividing bones
Campbell Barton
noreply at git.blender.org
Mon Dec 9 15:15:02 CET 2013
Commit: a930fb154f47a7473848254ad0b0b83c9edd1850
Author: Campbell Barton
Date: Tue Dec 10 01:14:31 2013 +1100
http://developer.blender.org/rBa930fb154f47a7473848254ad0b0b83c9edd1850
Fix T37751: Crash subdividing bones
===================================================================
M source/blender/editors/armature/armature_add.c
===================================================================
diff --git a/source/blender/editors/armature/armature_add.c b/source/blender/editors/armature/armature_add.c
index b3eef3d..ed8ae2d 100644
--- a/source/blender/editors/armature/armature_add.c
+++ b/source/blender/editors/armature/armature_add.c
@@ -793,7 +793,9 @@ static int armature_subdivide_exec(bContext *C, wmOperator *op)
ebone->rad_tail = newbone->rad_head;
newbone->flag |= BONE_CONNECTED;
-
+
+ newbone->prop = NULL;
+
unique_editbone_name(arm->edbo, newbone->name, NULL);
/* correct parent bones */
More information about the Bf-blender-cvs
mailing list