[Bf-blender-cvs] [be594288770] master: Depsgraph: Add missing update tag clear for proxy objects

Sergey Sharybin noreply at git.blender.org
Tue May 30 14:36:57 CEST 2017


Commit: be594288770792b8a709ea284f5599a28a3a7d56
Author: Sergey Sharybin
Date:   Tue May 30 14:33:11 2017 +0200
Branches: master
https://developer.blender.org/rBbe594288770792b8a709ea284f5599a28a3a7d56

Depsgraph: Add missing update tag clear for proxy objects

This was causing proxies updates on every frame, even if they
do not really change. Additionally, it was causing second round
of armature update when used from inside dupligroup (viewport
ensures all objects from dupligroup are up to date before draw).

===================================================================

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 df0bddede3b..a4714041edf 100644
--- a/source/blender/blenkernel/intern/armature_update.c
+++ b/source/blender/blenkernel/intern/armature_update.c
@@ -702,4 +702,8 @@ void BKE_pose_eval_proxy_copy(EvaluationContext *UNUSED(eval_ctx), Object *ob)
 		printf("Proxy copy error, lib Object: %s proxy Object: %s\n",
 		       ob->id.name + 2, ob->proxy_from->id.name + 2);
 	}
+	/* Rest of operations are NO-OP in depsgraph, so can clear
+	 * flag now.
+	 */
+	ob->recalc &= ~OB_RECALC_ALL;
 }




More information about the Bf-blender-cvs mailing list