diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-03-30 12:41:33 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-03-30 12:41:33 +0300 |
commit | 3f6a74560e0ee4fb247e36e6ef2516a997316dba (patch) | |
tree | 75080644daae244e3a11234a261b1ae9ee9e80ce /source/blender/editors/util/ed_util.c | |
parent | 35b731c9c8bdd996e9f418763f107a2e8e98516d (diff) |
Layers: Scene->basact > SceneLayer->basact (more work)
This brings back adding hooks among other areas
Diffstat (limited to 'source/blender/editors/util/ed_util.c')
-rw-r--r-- | source/blender/editors/util/ed_util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/util/ed_util.c b/source/blender/editors/util/ed_util.c index 482523e56be..96864c88d9d 100644 --- a/source/blender/editors/util/ed_util.c +++ b/source/blender/editors/util/ed_util.c @@ -88,7 +88,8 @@ void ED_editors_init(bContext *C) wmWindowManager *wm = CTX_wm_manager(C); Main *bmain = CTX_data_main(C); Scene *sce = CTX_data_scene(C); - Object *ob, *obact = (sce && sce->basact) ? sce->basact->object : NULL; + SceneLayer *sl = CTX_data_scene_layer(C); + Object *ob, *obact = (sl && sl->basact) ? sl->basact->object : NULL; ID *data; /* This is called during initialization, so we don't want to store any reports */ |