Merge branch 'master' into blender2.8
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 4 Apr 2018 09:49:24 +0000 (11:49 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 4 Apr 2018 09:49:24 +0000 (11:49 +0200)
source/blender/depsgraph/intern/builder/deg_builder_nodes_rig.cc

index 6a7f9eaea256ede2852399c2749da3ae49541f6b..8a2cab2d0fbdadba13ddaebdea683772b32130e9 100644 (file)
@@ -100,6 +100,7 @@ void DepsgraphNodeBuilder::build_ik_pose(Object *object,
        }
 
        int rootchan_index = BLI_findindex(&object->pose->chanbase, rootchan);
+       BLI_assert(rootchan_index != -1);
        /* Operation node for evaluating/running IK Solver. */
        add_operation_node(&object->id, DEG_NODE_TYPE_EVAL_POSE, rootchan->name,
                           function_bind(BKE_pose_iktree_evaluate,
@@ -125,6 +126,7 @@ void DepsgraphNodeBuilder::build_splineik_pose(Object *object,
         * start.
         */
        int rootchan_index = BLI_findindex(&object->pose->chanbase, rootchan);
+       BLI_assert(rootchan_index != -1);
        add_operation_node(&object->id, DEG_NODE_TYPE_EVAL_POSE, rootchan->name,
                           function_bind(BKE_pose_splineik_evaluate,
                                         _1,