From 9883641f46ebf4a9db407f125903a45ea617464e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 1 Oct 2013 13:28:59 +0000 Subject: add assert for bone renaming, to check if the chanhash is still valid. --- source/blender/editors/armature/armature_naming.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/editors/armature/armature_naming.c') diff --git a/source/blender/editors/armature/armature_naming.c b/source/blender/editors/armature/armature_naming.c index 98128404977..60f5e69621f 100644 --- a/source/blender/editors/armature/armature_naming.c +++ b/source/blender/editors/armature/armature_naming.c @@ -192,6 +192,8 @@ void ED_armature_bone_rename(bArmature *arm, const char *oldnamep, const char *n BLI_ghash_insert(gh, pchan->name, pchan); } } + + BLI_assert(BKE_pose_channels_is_valid(ob->pose) == true); } /* Update any object constraints to use the new bone name */ -- cgit v1.2.3