[Bf-blender-cvs] [c882cbd] master: Cleanup: Better to assert over bad condition (which shall never happen anyway), than just return with un-initialized mat...
Bastien Montagne
noreply at git.blender.org
Fri Sep 4 16:50:43 CEST 2015
Commit: c882cbd37c75ef4ca342f1e56df0912d47c5c772
Author: Bastien Montagne
Date: Fri Sep 4 12:35:43 2015 +0200
Branches: master
https://developer.blender.org/rBc882cbd37c75ef4ca342f1e56df0912d47c5c772
Cleanup: Better to assert over bad condition (which shall never happen anyway), than just return with un-initialized mat...
===================================================================
M source/blender/blenkernel/intern/armature.c
===================================================================
diff --git a/source/blender/blenkernel/intern/armature.c b/source/blender/blenkernel/intern/armature.c
index 639249e..c23595b 100644
--- a/source/blender/blenkernel/intern/armature.c
+++ b/source/blender/blenkernel/intern/armature.c
@@ -1141,8 +1141,7 @@ void BKE_armature_loc_world_to_pose(Object *ob, const float inloc[3], float outl
* Not exported, as it is only used in this file currently... */
static void get_offset_bone_mat(Bone *bone, float offs_bone[4][4])
{
- if (!bone->parent)
- return;
+ BLI_assert(bone->parent != NULL);
/* Bone transform itself. */
copy_m4_m3(offs_bone, bone->bone_mat);
More information about the Bf-blender-cvs
mailing list