[Bf-blender-cvs] [58c743f7cc9] blender2.8: Depsgraph: Add assert to make sure the view layer is part of the scene
Dalai Felinto
noreply at git.blender.org
Thu Nov 30 16:44:46 CET 2017
Commit: 58c743f7cc9ee74aae02d6d8922ec8d79ece5527
Author: Dalai Felinto
Date: Thu Nov 30 13:44:09 2017 -0200
Branches: blender2.8
https://developer.blender.org/rB58c743f7cc9ee74aae02d6d8922ec8d79ece5527
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.
===================================================================
M source/blender/depsgraph/intern/depsgraph_build.cc
===================================================================
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".
More information about the Bf-blender-cvs
mailing list