diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-11-30 18:44:09 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-11-30 18:44:34 +0300 |
commit | 58c743f7cc9ee74aae02d6d8922ec8d79ece5527 (patch) | |
tree | 0c178d05bd4b62051675c31c09141499eca526e5 | |
parent | f3de312b83477d5153eead472d68b7650c0f2b16 (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.cc | 1 |
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". |