[Bf-blender-cvs] [ba71e26] depsgraph_refactor: Depsgraph: Workaround for proxy not being at proper state after opening the file
Sergey Sharybin
noreply at git.blender.org
Thu Apr 30 18:37:20 CEST 2015
Commit: ba71e26c674f75210e8e1ba639e3d027f3762a0a
Author: Sergey Sharybin
Date: Thu Apr 30 21:35:24 2015 +0500
Branches: depsgraph_refactor
https://developer.blender.org/rBba71e26c674f75210e8e1ba639e3d027f3762a0a
Depsgraph: Workaround for proxy not being at proper state after opening the file
Was visible with the agent animation test file where agent was in T-pose after
opening the file.
Still need a deeper look into the problem tho.
===================================================================
M source/blender/depsgraph/intern/depsgraph_build_nodes.cpp
===================================================================
diff --git a/source/blender/depsgraph/intern/depsgraph_build_nodes.cpp b/source/blender/depsgraph/intern/depsgraph_build_nodes.cpp
index 3e3cc86..1e80594 100644
--- a/source/blender/depsgraph/intern/depsgraph_build_nodes.cpp
+++ b/source/blender/depsgraph/intern/depsgraph_build_nodes.cpp
@@ -756,6 +756,13 @@ void DepsgraphNodeBuilder::build_rig(Scene *scene, Object *ob)
/* Rebuild pose if not up to date. */
if (ob->pose == NULL || (ob->pose->flag & POSE_RECALC)) {
BKE_pose_rebuild(ob, arm);
+ /* XXX: Without this animaiton gets los incertain circumstances
+ * after loading file. Need to investigate further since it does
+ * not happen with simple scenes..
+ */
+ if (ob->adt) {
+ ob->adt->recalc |= ADT_RECALC_ANIM;
+ }
}
/* == Pose Rig Graph ==
More information about the Bf-blender-cvs
mailing list