[Bf-blender-cvs] [1c9030a] depsgraph_refactor: Depsgraph: don't get time if not needed
Sergey Sharybin
noreply at git.blender.org
Fri Jan 23 14:27:03 CET 2015
Commit: 1c9030aaee48a766aaa631e7640b0a72e5aa2b88
Author: Sergey Sharybin
Date: Fri Jan 23 18:26:47 2015 +0500
Branches: depsgraph_refactor
https://developer.blender.org/rB1c9030aaee48a766aaa631e7640b0a72e5aa2b88
Depsgraph: don't get time if not needed
===================================================================
M source/blender/blenkernel/intern/armature_update.c
===================================================================
diff --git a/source/blender/blenkernel/intern/armature_update.c b/source/blender/blenkernel/intern/armature_update.c
index 44c6871..2f2ceb7 100644
--- a/source/blender/blenkernel/intern/armature_update.c
+++ b/source/blender/blenkernel/intern/armature_update.c
@@ -626,12 +626,12 @@ void BKE_pose_constraints_evaluate(EvaluationContext *UNUSED(eval_ctx),
bPoseChannel *pchan)
{
Scene *scene = (Scene*)G.main->scene.first;
- float ctime = BKE_scene_frame_get(scene); /* not accurate... */
DEBUG_PRINT("%s on %s pchan %s\n", __func__, ob->id.name, pchan->name);
if (pchan->flag & POSE_IKTREE || pchan->flag & POSE_IKSPLINE) {
/* IK are being solved separately/ */
}
else {
+ float ctime = BKE_scene_frame_get(scene); /* not accurate... */
BKE_pose_where_is_bone(scene, ob, pchan, ctime, 1);
}
}
More information about the Bf-blender-cvs
mailing list