Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2017-11-30 18:44:09 +0300
committerDalai Felinto <dfelinto@gmail.com>2017-11-30 18:44:34 +0300
commit58c743f7cc9ee74aae02d6d8922ec8d79ece5527 (patch)
tree0c178d05bd4b62051675c31c09141499eca526e5
parentf3de312b83477d5153eead472d68b7650c0f2b16 (diff)
Depsgraph: Add assert to make sure the view layer is part of the scene
Which is not in some cases since workspace is still partly implemented.
-rw-r--r--source/blender/depsgraph/intern/depsgraph_build.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_build.cc b/source/blender/depsgraph/intern/depsgraph_build.cc
index 68cf4d77360..57153279acb 100644
--- a/source/blender/depsgraph/intern/depsgraph_build.cc
+++ b/source/blender/depsgraph/intern/depsgraph_build.cc
@@ -206,6 +206,7 @@ void DEG_graph_build_from_view_layer(Depsgraph *graph,
#endif
DEG::Depsgraph *deg_graph = reinterpret_cast<DEG::Depsgraph *>(graph);
+ BLI_assert(BLI_findindex(&scene->view_layers, view_layer) != -1);
/* TODO(sergey): This is a bit tricky, but ensures that all the data
* is evaluated properly when depsgraph is becoming "visible".