Blender V5.3
scene_context.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2026 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#include "BKE_context.hh"
10#include "BKE_scene_context.hh"
11
12#include "DNA_scene_types.h"
13
14namespace blender::bke {
15
17{
18 const bool is_sequencer = CTX_wm_space_seq(&C) != nullptr;
19 return is_sequencer ? CTX_data_sequencer_scene(&C) : CTX_data_scene(&C);
20}
21
22} // namespace blender::bke
#define C
Definition RandGen.cpp:29
Scene * scene_or_sequencer_scene_from_context(const bContext &C)
Scene * CTX_data_sequencer_scene(const bContext *C)
SpaceSeq * CTX_wm_space_seq(const bContext *C)
Scene * CTX_data_scene(const bContext *C)