Depsgraph: Remove workaround for infinite recursion in scene update
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 25 Oct 2017 13:49:19 +0000 (15:49 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 25 Oct 2017 13:49:59 +0000 (15:49 +0200)
Was needed for legacy lamp/material drivers.

source/blender/blenkernel/intern/scene.c

index 1736e824a9462af3df6fd9d1828be46d48708ee0..1e034a27e649e9134c8812e5f710168861bb642f 100644 (file)
@@ -1603,11 +1603,6 @@ void BKE_scene_graph_update_tagged(EvaluationContext *eval_ctx,
        prepare_mesh_for_viewport_render(bmain, scene);
        /* Flush recalc flags to dependencies. */
        DEG_graph_flush_update(bmain, depsgraph);
-       /* Clear "LIB_TAG_DOIT" flag from all materials, to prevent infinite recursion problems later
-        * when trying to find materials with drivers that need evaluating [#32017].
-        */
-       BKE_main_id_tag_idcode(bmain, ID_MA, LIB_TAG_DOIT, false);
-       BKE_main_id_tag_idcode(bmain, ID_LA, LIB_TAG_DOIT, false);
        /* Update all objects: drivers, matrices, displists, etc. flags set
         * by depgraph or manual, no layer check here, gets correct flushed.
         */
@@ -1651,11 +1646,6 @@ void BKE_scene_graph_update_for_newframe(EvaluationContext *eval_ctx,
 #ifdef POSE_ANIMATION_WORKAROUND
        scene_armature_depsgraph_workaround(bmain);
 #endif
-       /* Clear "LIB_TAG_DOIT" flag from all materials, to prevent infinite recursion problems later
-        * when trying to find materials with drivers that need evaluating [#32017].
-        */
-       BKE_main_id_tag_idcode(bmain, ID_MA, LIB_TAG_DOIT, false);
-       BKE_main_id_tag_idcode(bmain, ID_LA, LIB_TAG_DOIT, false);
        /* Update all objects: drivers, matrices, displists, etc. flags set
         * by depgraph or manual, no layer check here, gets correct flushed.
         */