[Bf-blender-cvs] [c014e03b17d] blender2.8: Don't tag objects from inside function which is used by dependency graph

Sergey Sharybin noreply at git.blender.org
Wed Dec 5 15:39:53 CET 2018


Commit: c014e03b17d34e1ba506c8af56d25ba378390357
Author: Sergey Sharybin
Date:   Wed Dec 5 15:37:25 2018 +0100
Branches: blender2.8
https://developer.blender.org/rBc014e03b17d34e1ba506c8af56d25ba378390357

Don't tag objects from inside function which is used by dependency graph

This partially reverts 9edc64e255b. If tag is needed, do it outside of
dependency graph evaluation.

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

M	source/blender/blenkernel/intern/pointcache.c

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

diff --git a/source/blender/blenkernel/intern/pointcache.c b/source/blender/blenkernel/intern/pointcache.c
index affe95ffe78..f336b7da144 100644
--- a/source/blender/blenkernel/intern/pointcache.c
+++ b/source/blender/blenkernel/intern/pointcache.c
@@ -75,8 +75,6 @@
 
 #include "BIK_api.h"
 
-#include "DEG_depsgraph.h"
-
 #ifdef WITH_BULLET
 #  include "RBI_api.h"
 #endif
@@ -3445,7 +3443,6 @@ int  BKE_ptcache_object_reset(Scene *scene, Object *ob, int mode)
 	if (ob->type == OB_ARMATURE)
 		BIK_clear_cache(ob->pose);
 
-	DEG_id_tag_update(&ob->id, DEG_TAG_COPY_ON_WRITE);
 	return reset;
 }



More information about the Bf-blender-cvs mailing list