diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-01-31 13:45:09 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-01-31 13:45:09 +0300 |
commit | fb5682412d70b3da2cc444dd1c16e46bc536a36c (patch) | |
tree | 216064ca7afdbdebc369ac569a4ed444034ebec6 | |
parent | 64b07e866a1454123a20c3be50353ec5c4fd0cc0 (diff) |
Let scene_collection and layer_collection to have the same fallback
-rw-r--r-- | source/blender/blenkernel/intern/context.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/source/blender/blenkernel/intern/context.c b/source/blender/blenkernel/intern/context.c index dc56794f2a4..afc4a397d07 100644 --- a/source/blender/blenkernel/intern/context.c +++ b/source/blender/blenkernel/intern/context.c @@ -952,12 +952,9 @@ SceneCollection *CTX_data_scene_collection(const bContext *C) } } - LayerCollection *lc; - if (ctx_data_pointer_verify(C, "layer_collection", (void *)&lc)) { - lc = CTX_data_layer_collection(C); - if (lc) { - return lc->scene_collection; - } + LayerCollection *lc = CTX_data_layer_collection(C); + if (lc) { + return lc->scene_collection; } /* fallback */ |