diff options
author | Julian Eisel <julian@blender.org> | 2020-08-21 12:19:07 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-08-21 12:31:15 +0300 |
commit | 7aeaf5da0eaf2310f9b984f953f9a3a2ea02883c (patch) | |
tree | 9a756863dc97170ae5d8a46a63e5a8a26306fec7 /source/blender/makesrna/intern/rna_scene.c | |
parent | 41d31e100d9d76aa8f20bd9fe8429122828dc7a9 (diff) |
Fix crash when accessing `view_layer.depsgraph` through BPY
For the sanity checks to work we don't actually need to check other
scenes. So this function can be simplified so that it does not require
a `Main *`.
Mistake in 5cc08510e0a6.
Diffstat (limited to 'source/blender/makesrna/intern/rna_scene.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_scene.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c index ec1a77c9520..54d349a7950 100644 --- a/source/blender/makesrna/intern/rna_scene.c +++ b/source/blender/makesrna/intern/rna_scene.c @@ -929,7 +929,7 @@ static const char *rna_Scene_statistics_string_get(Scene *scene, ReportList *reports, ViewLayer *view_layer) { - if (BKE_scene_find_from_view_layer(bmain, view_layer) != scene) { + if (!BKE_scene_has_view_layer(scene, view_layer)) { BKE_reportf(reports, RPT_ERROR, "View Layer '%s' not found in scene '%s'", |