Don't tag objects from inside function which is used by dependency graph
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 5 Dec 2018 14:37:25 +0000 (15:37 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 5 Dec 2018 14:37:25 +0000 (15:37 +0100)
This partially reverts 9edc64e255b. If tag is needed, do it outside of
dependency graph evaluation.

source/blender/blenkernel/intern/pointcache.c

index affe95ffe78253154871e682dd55af74535f9805..f336b7da1444450fe40826ae25df60aeb86c7adc 100644 (file)
@@ -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;
 }