Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2015-09-04 13:35:43 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-09-04 17:50:29 +0300
commitc882cbd37c75ef4ca342f1e56df0912d47c5c772 (patch)
tree6aa5e3e49babc7e3b2d6cb79a10a11e129beb0cf
parent39752eb912cd2eb606935dd41e4f2f3977190ea0 (diff)
Cleanup: Better to assert over bad condition (which shall never happen anyway), than just return with un-initialized mat...
-rw-r--r--source/blender/blenkernel/intern/armature.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/armature.c b/source/blender/blenkernel/intern/armature.c
index 639249eab21..c23595b6ee1 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);