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)
1  2 
source/blender/depsgraph/intern/builder/deg_builder_nodes_rig.cc

index 6a7f9eaea256ede2852399c2749da3ae49541f6b,4e1de16235c3d63a5f226a0c157de1f1f271e8e5..8a2cab2d0fbdadba13ddaebdea683772b32130e9
@@@ -121,10 -120,10 +122,11 @@@ void DepsgraphNodeBuilder::build_spline
        bPoseChannel *rootchan = BKE_armature_splineik_solver_find_root(pchan, data);
  
        /* Operation node for evaluating/running Spline IK Solver.
 -       * Store the "root bone" of this chain in the solver, so it knows where to start.
 +       * Store the "root bone" of this chain in the solver, so it knows where to
 +       * 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,