diff options
Diffstat (limited to 'source/blender/blenkernel/intern/scene.c')
-rw-r--r-- | source/blender/blenkernel/intern/scene.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/scene.c b/source/blender/blenkernel/intern/scene.c index e2687246820..b518ae4b4a9 100644 --- a/source/blender/blenkernel/intern/scene.c +++ b/source/blender/blenkernel/intern/scene.c @@ -756,6 +756,11 @@ Base *BKE_scene_base_find(Scene *scene, Object *ob) return BLI_findptr(&scene->base, ob, offsetof(Base, object)); } +/** + * Sets the active scene, mainly used when running in background mode (``--scene`` command line argument). + * This is also called to set the scene directly, bypassing windowing code. + * Otherwise #ED_screen_set_scene is used when changing scenes by the user. + */ void BKE_scene_set_background(Main *bmain, Scene *scene) { Scene *sce; |