Render preview: Remove dedicated depsgraph
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 3 May 2018 10:57:54 +0000 (12:57 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 3 May 2018 10:57:54 +0000 (12:57 +0200)
It is not needed since render pipeline will create its own depsgraph.

source/blender/editors/render/render_preview.c

index 03742b489a1ff81d24e99b15bdc62acce83ea44d..4afcc5f661e65d18ff444be8e8405f1ae0905fa7 100644 (file)
@@ -490,12 +490,6 @@ static Scene *preview_prepare_scene(Main *bmain, Scene *scene, ID *id, int id_ty
                        }
                }
 
-               Depsgraph *depsgraph = BKE_scene_get_depsgraph(sce, view_layer, true);
-               /* TODO(sergey): Use proper flag for tagging here. */
-               DEG_graph_id_tag_update(pr_main, depsgraph, &sce->id, 0);
-               DEG_relations_tag_update(pr_main);
-               BKE_scene_graph_update_tagged(depsgraph, pr_main);
-
                return sce;
        }