Blender V5.0
scene.cc File Reference
#include <cstddef>
#include <cstdio>
#include <cstring>
#include <optional>
#include "MEM_guardedalloc.h"
#include "DNA_anim_types.h"
#include "DNA_brush_types.h"
#include "DNA_collection_types.h"
#include "DNA_curveprofile_types.h"
#include "DNA_defaults.h"
#include "DNA_gpencil_legacy_types.h"
#include "DNA_lightprobe_types.h"
#include "DNA_linestyle_types.h"
#include "DNA_mask_types.h"
#include "DNA_material_types.h"
#include "DNA_mesh_types.h"
#include "DNA_node_types.h"
#include "DNA_object_types.h"
#include "DNA_rigidbody_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_sequence_types.h"
#include "DNA_sound_types.h"
#include "DNA_space_types.h"
#include "DNA_text_types.h"
#include "DNA_userdef_types.h"
#include "DNA_vfont_types.h"
#include "DNA_view3d_types.h"
#include "DNA_windowmanager_types.h"
#include "DNA_world_types.h"
#include "BLI_listbase.h"
#include "BLI_math_base.h"
#include "BLI_math_rotation.h"
#include "BLI_path_utils.hh"
#include "BLI_string_utf8.h"
#include "BLI_string_utils.hh"
#include "BLI_threads.h"
#include "BLI_utildefines.h"
#include "BLO_readfile.hh"
#include "BLT_translation.hh"
#include "BKE_action.hh"
#include "BKE_anim_data.hh"
#include "BKE_animsys.h"
#include "BKE_bpath.hh"
#include "BKE_callbacks.hh"
#include "BKE_collection.hh"
#include "BKE_colortools.hh"
#include "BKE_curveprofile.h"
#include "BKE_duplilist.hh"
#include "BKE_editmesh.hh"
#include "BKE_effect.h"
#include "BKE_fcurve.hh"
#include "BKE_idprop.hh"
#include "BKE_idtype.hh"
#include "BKE_image.hh"
#include "BKE_image_format.hh"
#include "BKE_layer.hh"
#include "BKE_lib_id.hh"
#include "BKE_lib_query.hh"
#include "BKE_lib_remap.hh"
#include "BKE_main.hh"
#include "BKE_mesh_types.hh"
#include "BKE_node_runtime.hh"
#include "BKE_paint.hh"
#include "BKE_pointcache.h"
#include "BKE_preview_image.hh"
#include "BKE_rigidbody.h"
#include "BKE_scene.hh"
#include "BKE_scene_runtime.hh"
#include "BKE_screen.hh"
#include "BKE_sound.h"
#include "BKE_unit.hh"
#include "BKE_workspace.hh"
#include "ANIM_action.hh"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_build.hh"
#include "DEG_depsgraph_debug.hh"
#include "DEG_depsgraph_query.hh"
#include "RE_engine.h"
#include "RNA_access.hh"
#include "SEQ_iterator.hh"
#include "SEQ_sequencer.hh"
#include "BLO_read_write.hh"
#include "IMB_colormanagement.hh"
#include "IMB_imbuf.hh"
#include "DRW_engine.hh"
#include "bmesh.hh"

Go to the source code of this file.

Classes

struct  DepsgraphKey
class  CompositorRuntime
class  SceneRuntime
class  SequencerRuntime

Macros

#define DNA_DEPRECATED_ALLOW
#define BKE_LIB_FOREACHID_UNDO_PRESERVE_PROCESS_IDSUPER_P(_data, _id_p, _do_undo_restore, _action, _reader, _id_old_p, _cb_flag)
#define BKE_LIB_FOREACHID_UNDO_PRESERVE_PROCESS_FUNCTION_CALL(_data, _do_undo_restore, _func_call)
#define FOREACHID_PROCESS_ID_NOCHECK(_data, _id_super, _cb_flag)
#define FOREACHID_PROCESS_IDSUPER(_data, _id_super, _cb_flag)

Enumerations

enum  eSceneForeachUndoPreserveProcess { SCENE_FOREACH_UNDO_RESTORE , SCENE_FOREACH_UNDO_NO_RESTORE }
enum  eCyclesFeatureSet { CYCLES_FEATURES_SUPPORTED = 0 , CYCLES_FEATURES_EXPERIMENTAL = 1 }

Functions

CurveMappingBKE_sculpt_default_cavity_curve ()
CurveMappingBKE_paint_default_curve ()
static void scene_init_data (ID *id)
static void scene_copy_data (Main *bmain, std::optional< Library * > owner_library, ID *id_dst, const ID *id_src, const int flag)
static void scene_free_markers (Scene *scene, bool do_id_user)
static void scene_free_data (ID *id)
static void scene_foreach_rigidbodyworldSceneLooper (RigidBodyWorld *, ID **id_pointer, void *user_data, const LibraryForeachIDCallbackFlag cb_flag)
static void scene_foreach_toolsettings_id_pointer_process (ID **id_p, const eSceneForeachUndoPreserveProcess action, BlendLibReader *reader, ID **id_old_p, const uint cb_flag)
static void scene_foreach_paint (LibraryForeachIDData *data, Paint *paint, const bool do_undo_restore, BlendLibReader *reader, Paint *paint_old)
static void scene_foreach_toolsettings (LibraryForeachIDData *data, ToolSettings *toolsett, const bool do_undo_restore, BlendLibReader *reader, ToolSettings *toolsett_old)
static void scene_foreach_layer_collection (LibraryForeachIDData *data, ListBase *lb, const bool is_master)
static bool strip_foreach_member_id_cb (Strip *strip, void *user_data)
static void scene_foreach_id (ID *id, LibraryForeachIDData *data)
static bool strip_foreach_path_callback (Strip *strip, void *user_data)
static void scene_foreach_path (ID *id, BPathForeachPathData *bpath_data)
static void scene_foreach_working_space_color (ID *id, const IDTypeForeachColorFunctionCallback &fn)
static void scene_foreach_cache (ID *id, IDTypeForeachCacheFunctionCallback function_callback, void *user_data)
static void scene_blend_write (BlendWriter *writer, ID *id, const void *id_address)
static void direct_link_paint_helper (BlendDataReader *reader, const Scene *scene, Paint **paint)
static void link_recurs_seq (BlendDataReader *reader, ListBase *lb)
static void scene_blend_read_data (BlendDataReader *reader, ID *id)
static void scene_blend_read_after_liblink (BlendLibReader *reader, ID *id)
static void scene_undo_preserve (BlendLibReader *reader, ID *id_new, ID *id_old)
static void scene_lib_override_apply_post (ID *id_dst, ID *)
constexpr IDTypeInfo get_type_info ()
static void remove_sequencer_fcurves (Scene *sce)
ToolSettingsBKE_toolsettings_copy (ToolSettings *toolsettings, const int flag)
void BKE_toolsettings_free (ToolSettings *toolsettings)
void BKE_scene_copy_data_eevee (Scene *sce_dst, const Scene *sce_src)
SceneBKE_scene_duplicate (Main *bmain, Scene *sce, eSceneCopyMethod type, eDupli_ID_Flags duplicate_flags, uint duplicate_options)
void BKE_scene_groups_relink (Scene *sce)
bool BKE_scene_can_be_removed (const Main *bmain, const Scene *scene)
SceneBKE_scene_add (Main *bmain, const char *name)
bool BKE_scene_object_find (Scene *scene, Object *ob)
ObjectBKE_scene_object_find_by_name (const Scene *scene, const char *name)
void BKE_scene_set_background (Main *bmain, Scene *scene)
SceneBKE_scene_set_name (Main *bmain, const char *name)
int BKE_scene_base_iter_next (Depsgraph *depsgraph, SceneBaseIter *iter, Scene **scene, int val, Base **base, Object **ob)
bool BKE_scene_has_view_layer (const Scene *scene, const ViewLayer *layer)
SceneBKE_scene_find_from_collection (const Main *bmain, const Collection *collection)
ObjectBKE_scene_camera_switch_find (Scene *scene)
bool BKE_scene_camera_switch_update (Scene *scene)
const char * BKE_scene_find_marker_name (const Scene *scene, int frame)
const char * BKE_scene_find_last_marker_name (const Scene *scene, int frame)
float BKE_scene_frame_snap_by_seconds (const Scene *scene, const double interval_in_seconds, const float frame)
void BKE_scene_remove_rigidbody_object (Main *bmain, Scene *scene, Object *ob, const bool free_us)
bool BKE_scene_validate_setscene (Main *bmain, Scene *sce)
float BKE_scene_ctime_get (const Scene *scene)
float BKE_scene_frame_to_ctime (const Scene *scene, const int frame)
float BKE_scene_frame_get (const Scene *scene)
void BKE_scene_frame_set (Scene *scene, float frame)
static bool check_rendered_viewport_visible (Main *bmain)
static void prepare_mesh_for_viewport_render (Main *bmain, const Scene *scene, ViewLayer *view_layer)
void BKE_scene_update_sound (Depsgraph *depsgraph, Main *bmain)
void BKE_scene_update_tag_audio_volume (Depsgraph *, Scene *scene)
static void scene_graph_update_tagged (Depsgraph *depsgraph, Main *bmain, bool only_if_tagged)
void BKE_scene_graph_update_tagged (Depsgraph *depsgraph, Main *bmain)
void BKE_scene_graph_evaluated_ensure (Depsgraph *depsgraph, Main *bmain)
void BKE_scene_graph_update_for_newframe_ex (Depsgraph *depsgraph, const bool clear_recalc)
void BKE_scene_graph_update_for_newframe (Depsgraph *depsgraph)
void BKE_scene_view_layer_graph_evaluated_ensure (Main *bmain, Scene *scene, ViewLayer *view_layer)
SceneRenderViewBKE_scene_add_render_view (Scene *sce, const char *name)
bool BKE_scene_remove_render_view (Scene *scene, SceneRenderView *srv)
int get_render_subsurf_level (const RenderData *r, int lvl, bool for_render)
int get_render_child_particle_number (const RenderData *r, int child_num, bool for_render)
Base_setlooper_base_step (Scene **sce_iter, ViewLayer *view_layer, Base *base)
bool BKE_scene_use_shading_nodes_custom (Scene *scene)
bool BKE_scene_use_spherical_stereo (Scene *scene)
bool BKE_scene_uses_blender_eevee (const Scene *scene)
bool BKE_scene_uses_blender_workbench (const Scene *scene)
bool BKE_scene_uses_cycles (const Scene *scene)
bool BKE_scene_uses_shader_previews (const Scene *scene)
void BKE_scene_base_flag_to_objects (const Scene *scene, ViewLayer *view_layer)
void BKE_scene_object_base_flag_sync_from_base (Base *base)
void BKE_scene_disable_color_management (Scene *scene)
bool BKE_scene_check_rigidbody_active (const Scene *scene)
int BKE_render_num_threads (const RenderData *rd)
int BKE_scene_num_threads (const Scene *scene)
void BKE_render_resolution (const RenderData *r, const bool use_crop, int *r_width, int *r_height)
int BKE_render_preview_pixel_size (const RenderData *r)
int BKE_scene_multiview_num_views_get (const RenderData *rd)
bool BKE_scene_multiview_is_stereo3d (const RenderData *rd)
bool BKE_scene_multiview_is_render_view_active (const RenderData *rd, const SceneRenderView *srv)
bool BKE_scene_multiview_is_render_view_first (const RenderData *rd, const char *viewname)
bool BKE_scene_multiview_is_render_view_last (const RenderData *rd, const char *viewname)
SceneRenderViewBKE_scene_multiview_render_view_findindex (const RenderData *rd, const int view_id)
const char * BKE_scene_multiview_render_view_name_get (const RenderData *rd, const int view_id)
int BKE_scene_multiview_view_id_get (const RenderData *rd, const char *viewname)
void BKE_scene_multiview_filepath_get (const SceneRenderView *srv, const char *filepath, char *r_filepath)
void BKE_scene_multiview_view_filepath_get (const RenderData *rd, const char *filepath, const char *viewname, char *r_filepath)
const char * BKE_scene_multiview_view_suffix_get (const RenderData *rd, const char *viewname)
const char * BKE_scene_multiview_view_id_suffix_get (const RenderData *rd, const int view_id)
void BKE_scene_multiview_view_prefix_get (Scene *scene, const char *filepath, char *r_prefix, const char **r_ext)
void BKE_scene_multiview_videos_dimensions_get (const RenderData *rd, const ImageFormatData *imf, const size_t width, const size_t height, size_t *r_width, size_t *r_height)
int BKE_scene_multiview_num_videos_get (const RenderData *rd, const ImageFormatData *imf)
void BKE_scene_ppm_get (const RenderData *rd, double r_ppm[2])
static uint depsgraph_key_hash (const void *key_v)
static bool depsgraph_key_compare (const void *key_a_v, const void *key_b_v)
static void depsgraph_key_free (void *key_v)
static void depsgraph_key_value_free (void *value)
void BKE_scene_allocate_depsgraph_hash (Scene *scene)
void BKE_scene_ensure_depsgraph_hash (Scene *scene)
void BKE_scene_free_depsgraph_hash (Scene *scene)
void BKE_scene_free_view_layer_depsgraph (Scene *scene, ViewLayer *view_layer)
static Depsgraph ** scene_get_depsgraph_p (Scene *scene, ViewLayer *view_layer, const bool allocate_ghash_entry)
static Depsgraph ** scene_ensure_depsgraph_p (Main *bmain, Scene *scene, ViewLayer *view_layer)
Depsgraph * BKE_scene_get_depsgraph (const Scene *scene, const ViewLayer *view_layer)
Depsgraph * BKE_scene_ensure_depsgraph (Main *bmain, Scene *scene, ViewLayer *view_layer)
static char * scene_undo_depsgraph_gen_key (Scene *scene, ViewLayer *view_layer, char *key_full)
GHashBKE_scene_undo_depsgraphs_extract (Main *bmain)
void BKE_scene_undo_depsgraphs_restore (Main *bmain, GHash *depsgraph_extract)
Scene Orientation Slots
TransformOrientationSlotBKE_scene_orientation_slot_get (Scene *scene, int slot_index)
TransformOrientationSlotBKE_scene_orientation_slot_get_from_flag (Scene *scene, int flag)
void BKE_scene_orientation_slot_set_index (TransformOrientationSlot *orient_slot, int orientation)
int BKE_scene_orientation_slot_get_index (const TransformOrientationSlot *orient_slot)
int BKE_scene_orientation_get_index (Scene *scene, int slot_index)
int BKE_scene_orientation_get_index_from_flag (Scene *scene, int flag)
Scene Orientation
void BKE_scene_transform_orientation_remove (Scene *scene, TransformOrientation *orientation)
TransformOrientationBKE_scene_transform_orientation_find (const Scene *scene, const int index)
int BKE_scene_transform_orientation_get_index (const Scene *scene, const TransformOrientation *orientation)
Scene Cursor Rotation
template<>
blender::float3x3 View3DCursor::matrix< blender::float3x3 > () const
template<>
blender::float4x4 View3DCursor::matrix< blender::float4x4 > () const

Variables

IDTypeInfo IDType_ID_SCE = get_type_info()
const char * RE_engine_id_BLENDER_EEVEE = "BLENDER_EEVEE"
const char * RE_engine_id_BLENDER_EEVEE_NEXT = "BLENDER_EEVEE_NEXT"
const char * RE_engine_id_BLENDER_WORKBENCH = "BLENDER_WORKBENCH"
const char * RE_engine_id_CYCLES = "CYCLES"

Macro Definition Documentation

◆ BKE_LIB_FOREACHID_UNDO_PRESERVE_PROCESS_FUNCTION_CALL

#define BKE_LIB_FOREACHID_UNDO_PRESERVE_PROCESS_FUNCTION_CALL ( _data,
_do_undo_restore,
_func_call )
Value:
{ \
if (_do_undo_restore) { \
_func_call; \
} \
else { \
BLI_assert((_data) != nullptr); \
BKE_LIB_FOREACHID_PROCESS_FUNCTION_CALL(_data, _func_call); \
} \
} \
(void)0

Definition at line 547 of file scene.cc.

Referenced by scene_foreach_toolsettings().

◆ BKE_LIB_FOREACHID_UNDO_PRESERVE_PROCESS_IDSUPER_P

#define BKE_LIB_FOREACHID_UNDO_PRESERVE_PROCESS_IDSUPER_P ( _data,
_id_p,
_do_undo_restore,
_action,
_reader,
_id_old_p,
_cb_flag )
Value:
{ \
if (_do_undo_restore) { \
scene_foreach_toolsettings_id_pointer_process( \
(ID **)(_id_p), _action, _reader, (ID **)(_id_old_p), _cb_flag); \
} \
else { \
BLI_assert((_data) != nullptr); \
BKE_LIB_FOREACHID_PROCESS_IDSUPER_P(_data, _id_p, _cb_flag); \
} \
} \
(void)0
Definition DNA_ID.h:414

Special handling is needed here, as scene_foreach_toolsettings (and its dependency scene_foreach_paint) are also used by scene_undo_preserve, where LibraryForeachIDData *data is nullptr.

Definition at line 533 of file scene.cc.

Referenced by scene_foreach_paint(), and scene_foreach_toolsettings().

◆ DNA_DEPRECATED_ALLOW

#define DNA_DEPRECATED_ALLOW

Definition at line 10 of file scene.cc.

◆ FOREACHID_PROCESS_ID_NOCHECK

#define FOREACHID_PROCESS_ID_NOCHECK ( _data,
_id_super,
_cb_flag )
Value:
{ \
BKE_lib_query_foreachid_process((_data), reinterpret_cast<ID **>(&(_id_super)), (_cb_flag)); \
return false; \
} \
} \
((void)0)
bool BKE_lib_query_foreachid_iter_stop(const LibraryForeachIDData *data)
Definition lib_query.cc:73

◆ FOREACHID_PROCESS_IDSUPER

#define FOREACHID_PROCESS_IDSUPER ( _data,
_id_super,
_cb_flag )
Value:
{ \
CHECK_TYPE(&((_id_super)->id), ID *); \
FOREACHID_PROCESS_ID_NOCHECK(_data, _id_super, _cb_flag); \
} \
((void)0)

Referenced by strip_foreach_member_id_cb().

Enumeration Type Documentation

◆ eCyclesFeatureSet

Enumerator
CYCLES_FEATURES_SUPPORTED 
CYCLES_FEATURES_EXPERIMENTAL 

Definition at line 2845 of file scene.cc.

◆ eSceneForeachUndoPreserveProcess

This code is shared by both the regular foreach_id looper, and the code trying to restore or preserve ID pointers like brushes across undo-steps.

Enumerator
SCENE_FOREACH_UNDO_RESTORE 
SCENE_FOREACH_UNDO_NO_RESTORE 

Definition at line 462 of file scene.cc.

Function Documentation

◆ _setlooper_base_step()

Base * _setlooper_base_step ( Scene ** sce_iter,
ViewLayer * view_layer,
Base * base )

Helper function for the SETLOOPER and SETLOOPER_VIEW_LAYER macros

It iterates over the bases of the active layer and then the bases of the active layer of the background (set) scenes recursively.

Definition at line 2779 of file scene.cc.

References BKE_view_layer_default_render(), BKE_view_layer_object_bases_get(), BKE_view_layer_synced_ensure(), ListBase::first, Base::next, and Scene::set.

◆ BKE_paint_default_curve()

◆ BKE_render_num_threads()

◆ BKE_render_preview_pixel_size()

int BKE_render_preview_pixel_size ( const RenderData * r)

◆ BKE_render_resolution()

◆ BKE_scene_add()

◆ BKE_scene_add_render_view()

SceneRenderView * BKE_scene_add_render_view ( Scene * sce,
const char * name )

◆ BKE_scene_allocate_depsgraph_hash()

void BKE_scene_allocate_depsgraph_hash ( Scene * scene)

◆ BKE_scene_base_flag_to_objects()

void BKE_scene_base_flag_to_objects ( const Scene * scene,
ViewLayer * view_layer )

◆ BKE_scene_base_iter_next()

◆ BKE_scene_camera_switch_find()

◆ BKE_scene_camera_switch_update()

◆ BKE_scene_can_be_removed()

bool BKE_scene_can_be_removed ( const Main * bmain,
const Scene * scene )

Definition at line 1986 of file scene.cc.

References ID_IS_LINKED, LISTBASE_FOREACH, and Main::scenes.

Referenced by scene_delete_poll().

◆ BKE_scene_check_rigidbody_active()

bool BKE_scene_check_rigidbody_active ( const Scene * scene)

◆ BKE_scene_copy_data_eevee()

void BKE_scene_copy_data_eevee ( Scene * sce_dst,
const Scene * sce_src )

◆ BKE_scene_ctime_get()

◆ BKE_scene_disable_color_management()

◆ BKE_scene_duplicate()

Scene * BKE_scene_duplicate ( Main * bmain,
Scene * sce,
eSceneCopyMethod type,
eDupli_ID_Flags duplicate_flags,
uint duplicate_options )

Definition at line 1783 of file scene.cc.

References Scene::audio, RenderData::bake, BKE_animdata_duplicate_id_action(), BKE_collection_duplicate(), BKE_color_managed_colorspace_settings_copy(), BKE_color_managed_display_settings_copy(), BKE_color_managed_view_settings_copy(), BKE_curvemapping_copy_data(), BKE_curvemapping_free_data(), BKE_id_copy(), BKE_id_copy_for_duplicate(), BKE_image_format_copy(), BKE_libblock_relink_to_newid(), BKE_main_collection_sync(), BKE_main_id_newptr_and_tag_clear(), BKE_scene_add(), BKE_scene_copy_data_eevee(), BKE_sound_destroy_scene(), BKE_sound_reset_scene_runtime(), BKE_toolsettings_copy(), BKE_toolsettings_free(), BLI_assert, Scene::compositing_node_group, RigidBodyWorld::constraints, Scene::display, Scene::display_settings, blender::seq::editing_free(), FOREACH_MAIN_ID_BEGIN, FOREACH_MAIN_ID_END, Scene::gpd, RigidBodyWorld::group, Scene::id, ID_IS_LINKED, ID_NEW_SET, ID_REMAP_FORCE_OBDATA_IN_EDITMODE, ID_REMAP_SKIP_USER_CLEAR, ID_TAG_NEW, id_us_ensure_real(), id_us_min(), IDP_CopyProperty(), BakeData::im_format, RenderData::im_format, LIB_ID_COPY_DEFAULT, LIB_ID_DUPLICATE_IS_ROOT_ID, LIB_ID_DUPLICATE_IS_SUBPROCESS, LISTBASE_FOREACH, Scene::master_collection, RenderData::mblur_shutter_curve, ID::name, ID::newid, Scene::physics_settings, Scene::preview, ID::properties, Scene::r, remove_sequencer_fcurves(), Scene::rigidbody_world, SCE_COPY_EMPTY, SCE_COPY_FULL, Scene::sequencer_colorspace_settings, ID::system_properties, ID::tag, Scene::toolsettings, Scene::unit, USER_DUP_LINKED_ID, Scene::view_layers, Scene::view_settings, RenderData::views, and Scene::world.

Referenced by scene_add(), blender::ed::vse::sequencer_add_scene_asset(), blender::seq::strip_duplicate(), and blender::bke::tests::TEST_F().

◆ BKE_scene_ensure_depsgraph()

◆ BKE_scene_ensure_depsgraph_hash()

void BKE_scene_ensure_depsgraph_hash ( Scene * scene)

Definition at line 3304 of file scene.cc.

References BKE_scene_allocate_depsgraph_hash(), and Scene::depsgraph_hash.

Referenced by scene_get_depsgraph_p().

◆ BKE_scene_find_from_collection()

Scene * BKE_scene_find_from_collection ( const Main * bmain,
const Collection * collection )

Definition at line 2211 of file scene.cc.

References BKE_view_layer_has_collection(), LISTBASE_FOREACH, and Main::scenes.

◆ BKE_scene_find_last_marker_name()

const char * BKE_scene_find_last_marker_name ( const Scene * scene,
int frame )

Return the current marker for this frame, we can have more than 1 marker per frame, this just returns the first (unfortunately).

Definition at line 2303 of file scene.cc.

References TimeMarker::frame, LISTBASE_FOREACH, Scene::markers, MAXFRAME, and TimeMarker::name.

Referenced by stampdata().

◆ BKE_scene_find_marker_name()

const char * BKE_scene_find_marker_name ( const Scene * scene,
int frame )

◆ BKE_scene_frame_get()

◆ BKE_scene_frame_set()

void BKE_scene_frame_set ( Scene * scene,
float frame )

Set current frame and sub-frame based on a fractional frame.

Definition at line 2389 of file scene.cc.

References RenderData::cfra, modf, Scene::r, and RenderData::subframe.

Referenced by deg_flush_updates_and_refresh(), keyframe_jump_exec(), lineart_bake_startjob(), RE_engine_frame_set(), and blender::seq::seq_render_scene_strip_ex().

◆ BKE_scene_frame_snap_by_seconds()

float BKE_scene_frame_snap_by_seconds ( const Scene * scene,
const double interval_in_seconds,
const float frame )

Definition at line 2321 of file scene.cc.

References BLI_assert, ceil, float, and floor.

Referenced by append_second_snap_target(), and blender::bke::tests::TEST().

◆ BKE_scene_frame_to_ctime()

float BKE_scene_frame_to_ctime ( const Scene * scene,
int frame )

Convert integer frame number to fractional frame number taking into account sub-frames and time remapping.

Definition at line 2375 of file scene.cc.

References RenderData::framelen, Scene::r, and RenderData::subframe.

Referenced by BKE_ptcache_id_time(), BKE_scene_ctime_get(), DEG_evaluate_on_framechange(), and object_add_or_copy_particle_system().

◆ BKE_scene_free_depsgraph_hash()

void BKE_scene_free_depsgraph_hash ( Scene * scene)

◆ BKE_scene_free_view_layer_depsgraph()

void BKE_scene_free_view_layer_depsgraph ( Scene * scene,
ViewLayer * view_layer )

◆ BKE_scene_get_depsgraph()

◆ BKE_scene_graph_evaluated_ensure()

◆ BKE_scene_graph_update_for_newframe()

◆ BKE_scene_graph_update_for_newframe_ex()

◆ BKE_scene_graph_update_tagged()

◆ BKE_scene_groups_relink()

void BKE_scene_groups_relink ( Scene * sce)

Definition at line 1979 of file scene.cc.

References BKE_rigidbody_world_groups_relink(), and Scene::rigidbody_world.

◆ BKE_scene_has_view_layer()

bool BKE_scene_has_view_layer ( const Scene * scene,
const ViewLayer * layer )

Definition at line 2206 of file scene.cc.

References BLI_findindex(), and Scene::view_layers.

Referenced by BKE_scene_get_depsgraph(), and scene_get_depsgraph_p().

◆ BKE_scene_multiview_filepath_get()

void BKE_scene_multiview_filepath_get ( const SceneRenderView * srv,
const char * filepath,
char * r_filepath )

Definition at line 3108 of file scene.cc.

References BLI_path_suffix(), BLI_strncpy(), FILE_MAX, and SceneRenderView::suffix.

Referenced by RE_RenderAnim().

◆ BKE_scene_multiview_is_render_view_active()

◆ BKE_scene_multiview_is_render_view_first()

bool BKE_scene_multiview_is_render_view_first ( const RenderData * rd,
const char * viewname )
Returns
true if viewname is the first or if the name is NULL or not found.

Definition at line 3014 of file scene.cc.

References BKE_scene_multiview_is_render_view_active(), LISTBASE_FOREACH, R_MULTIVIEW, RenderData::scemode, STREQ, and RenderData::views.

Referenced by blender::render::Context::viewer_output_to_viewer_image().

◆ BKE_scene_multiview_is_render_view_last()

bool BKE_scene_multiview_is_render_view_last ( const RenderData * rd,
const char * viewname )
Returns
true if viewname is the last or if the name is NULL or not found.

Definition at line 3033 of file scene.cc.

References BKE_scene_multiview_is_render_view_active(), LISTBASE_FOREACH_BACKWARD, R_MULTIVIEW, RenderData::scemode, STREQ, and RenderData::views.

◆ BKE_scene_multiview_is_stereo3d()

◆ BKE_scene_multiview_num_videos_get()

◆ BKE_scene_multiview_num_views_get()

◆ BKE_scene_multiview_render_view_findindex()

SceneRenderView * BKE_scene_multiview_render_view_findindex ( const RenderData * rd,
const int view_id )

◆ BKE_scene_multiview_render_view_name_get()

const char * BKE_scene_multiview_render_view_name_get ( const RenderData * rd,
const int view_id )

◆ BKE_scene_multiview_videos_dimensions_get()

void BKE_scene_multiview_videos_dimensions_get ( const RenderData * rd,
const ImageFormatData * imf,
const size_t width,
const size_t height,
size_t * r_width,
size_t * r_height )

◆ BKE_scene_multiview_view_filepath_get()

void BKE_scene_multiview_view_filepath_get ( const RenderData * rd,
const char * filepath,
const char * view,
char * r_filepath )

When multi-view is not used the filepath is as usual (e.g., Image.jpg). When multi-view is on, even if only one view is enabled the view is incorporated into the file name (e.g., Image_L.jpg). That allows for the user to re-render individual views.

Definition at line 3116 of file scene.cc.

References BLI_findstring(), BLI_path_suffix(), BLI_strncpy(), FILE_MAX, name, offsetof, STRNCPY(), SceneRenderView::suffix, and RenderData::views.

Referenced by BKE_image_render_write(), and image_save_single().

◆ BKE_scene_multiview_view_id_get()

◆ BKE_scene_multiview_view_id_suffix_get()

◆ BKE_scene_multiview_view_prefix_get()

◆ BKE_scene_multiview_view_suffix_get()

const char * BKE_scene_multiview_view_suffix_get ( const RenderData * rd,
const char * viewname )

◆ BKE_scene_num_threads()

int BKE_scene_num_threads ( const Scene * scene)

◆ BKE_scene_object_base_flag_sync_from_base()

void BKE_scene_object_base_flag_sync_from_base ( Base * base)

Synchronize object base flags

This is usually handled by the depsgraph. However, in rare occasions we need to use the latest object flags before depsgraph is fully updated.

It should (ideally) only run for copy-on-written objects since this is runtime data generated per-view-layer.

Definition at line 2858 of file scene.cc.

References Object::base_flag, Base::flag, and Base::object.

Referenced by blender::ed::object::base_select(), BKE_scene_base_flag_to_objects(), BKE_scene_set_background(), loose_data_instantiate_collection_process(), loose_data_instantiate_object_base_instance_init(), blender::ed::object::make_object_duplilist_real(), and blender::ed::object::object_hide_view_clear_exec().

◆ BKE_scene_object_find()

bool BKE_scene_object_find ( Scene * scene,
Object * ob )

Check if there is any instance of the object in the scene.

Definition at line 2010 of file scene.cc.

References BKE_view_layer_object_bases_get(), BKE_view_layer_synced_ensure(), BLI_findptr(), LISTBASE_FOREACH, offsetof, and Scene::view_layers.

◆ BKE_scene_object_find_by_name()

Object * BKE_scene_object_find_by_name ( const Scene * scene,
const char * name )

◆ BKE_scene_orientation_get_index()

◆ BKE_scene_orientation_get_index_from_flag()

int BKE_scene_orientation_get_index_from_flag ( Scene * scene,
int flag )

◆ BKE_scene_orientation_slot_get()

◆ BKE_scene_orientation_slot_get_from_flag()

◆ BKE_scene_orientation_slot_get_index()

◆ BKE_scene_orientation_slot_set_index()

void BKE_scene_orientation_slot_set_index ( TransformOrientationSlot * orient_slot,
int orientation )

Activate a transform orientation in a 3D view based on an enum value.

Parameters
orientationIf this is V3D_ORIENT_CUSTOM or greater, the custom transform orientation with index orientation - V3D_ORIENT_CUSTOM gets activated.

Definition at line 2425 of file scene.cc.

References TransformOrientationSlot::index_custom, TransformOrientationSlot::type, and V3D_ORIENT_CUSTOM.

Referenced by blender::ed::transform::select_orientation_exec().

◆ BKE_scene_ppm_get()

void BKE_scene_ppm_get ( const RenderData * rd,
double r_ppm[2] )

Calculate the final pixels-per-meter, from the scenes PPM & aspect data.

Definition at line 3234 of file scene.cc.

References RenderData::ppm_base, RenderData::ppm_factor, UNLIKELY, RenderData::xasp, and RenderData::yasp.

Referenced by image_save_single(), RE_InitState(), render_result_from_bake(), render_result_new(), and blender::compositor::FileOutput::save().

◆ BKE_scene_remove_render_view()

bool BKE_scene_remove_render_view ( Scene * scene,
SceneRenderView * srv )

◆ BKE_scene_remove_rigidbody_object()

void BKE_scene_remove_rigidbody_object ( Main * bmain,
Scene * scene,
Object * ob,
const bool free_us )

◆ BKE_scene_set_background()

void BKE_scene_set_background ( Main * bmain,
Scene * sce )

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 WM_window_set_active_scene is used when changing scenes by the user.

Definition at line 2034 of file scene.cc.

References BKE_scene_object_base_flag_sync_from_base(), BKE_scene_validate_setscene(), BKE_view_layer_object_bases_get(), BKE_view_layer_synced_ensure(), LISTBASE_FOREACH, Main::objects, SELECT, and Scene::view_layers.

Referenced by BKE_scene_set_name(), Freestyle::BlenderStrokeRenderer::BlenderStrokeRenderer(), ED_scene_change_update(), and setup_app_data().

◆ BKE_scene_set_name()

Scene * BKE_scene_set_name ( Main * bmain,
const char * name )

◆ BKE_scene_transform_orientation_find()

◆ BKE_scene_transform_orientation_get_index()

int BKE_scene_transform_orientation_get_index ( const Scene * scene,
const TransformOrientation * orientation )
Returns
the index that orientation has within scene's transform-orientation list or -1 if not found.

Definition at line 3530 of file scene.cc.

References BLI_findindex(), and Scene::transform_spaces.

Referenced by blender::ed::transform::BIF_selectTransformOrientation(), and BKE_scene_transform_orientation_remove().

◆ BKE_scene_transform_orientation_remove()

◆ BKE_scene_undo_depsgraphs_extract()

◆ BKE_scene_undo_depsgraphs_restore()

◆ BKE_scene_update_sound()

◆ BKE_scene_update_tag_audio_volume()

void BKE_scene_update_tag_audio_volume ( Depsgraph * ,
Scene * scene )

Definition at line 2536 of file scene.cc.

References BLI_assert, DEG_is_evaluated(), Scene::id, ID_RECALC_AUDIO_VOLUME, and ID::recalc.

◆ BKE_scene_use_shading_nodes_custom()

bool BKE_scene_use_shading_nodes_custom ( Scene * scene)

◆ BKE_scene_use_spherical_stereo()

bool BKE_scene_use_spherical_stereo ( Scene * scene)

◆ BKE_scene_uses_blender_eevee()

◆ BKE_scene_uses_blender_workbench()

◆ BKE_scene_uses_cycles()

bool BKE_scene_uses_cycles ( const Scene * scene)

Definition at line 2834 of file scene.cc.

References RenderData::engine, Scene::r, RE_engine_id_CYCLES, and STREQ.

Referenced by BKE_scene_uses_shader_previews().

◆ BKE_scene_uses_shader_previews()

bool BKE_scene_uses_shader_previews ( const Scene * scene)

◆ BKE_scene_validate_setscene()

bool BKE_scene_validate_setscene ( Main * bmain,
Scene * sce )

Checks for cycle, returns true if it's all OK.

Definition at line 2348 of file scene.cc.

References BLI_listbase_count(), Main::scenes, and Scene::set.

Referenced by BKE_scene_set_background().

◆ BKE_scene_view_layer_graph_evaluated_ensure()

void BKE_scene_view_layer_graph_evaluated_ensure ( Main * bmain,
Scene * scene,
ViewLayer * view_layer )

Ensures given scene/view_layer pair has a valid, up-to-date depsgraph.

Warning
Sets matching depsgraph as active, so should only be called from the active editing context (usually, from operators).

Definition at line 2705 of file scene.cc.

References BKE_scene_ensure_depsgraph(), BKE_scene_graph_update_tagged(), DEG_make_active(), and depsgraph.

◆ BKE_sculpt_default_cavity_curve()

◆ BKE_toolsettings_copy()

◆ BKE_toolsettings_free()

◆ check_rendered_viewport_visible()

◆ depsgraph_key_compare()

bool depsgraph_key_compare ( const void * key_a_v,
const void * key_b_v )
static

Definition at line 3278 of file scene.cc.

References DepsgraphKey::view_layer.

Referenced by BKE_scene_allocate_depsgraph_hash().

◆ depsgraph_key_free()

void depsgraph_key_free ( void * key_v)
static

Definition at line 3286 of file scene.cc.

References MEM_freeN().

Referenced by BKE_scene_free_depsgraph_hash(), and BKE_scene_free_view_layer_depsgraph().

◆ depsgraph_key_hash()

uint depsgraph_key_hash ( const void * key_v)
static

Definition at line 3270 of file scene.cc.

References BLI_ghashutil_ptrhash(), hash, and DepsgraphKey::view_layer.

Referenced by BKE_scene_allocate_depsgraph_hash().

◆ depsgraph_key_value_free()

void depsgraph_key_value_free ( void * value)
static

◆ direct_link_paint_helper()

void direct_link_paint_helper ( BlendDataReader * reader,
const Scene * scene,
Paint ** paint )
static

Definition at line 1214 of file scene.cc.

References BKE_paint_blend_read_data(), and BLO_read_struct.

Referenced by scene_blend_read_data().

◆ get_render_child_particle_number()

int get_render_child_particle_number ( const RenderData * r,
int child_num,
bool for_render )

◆ get_render_subsurf_level()

int get_render_subsurf_level ( const RenderData * r,
int lvl,
bool for_render )

◆ get_type_info()

◆ link_recurs_seq()

◆ prepare_mesh_for_viewport_render()

◆ remove_sequencer_fcurves()

void remove_sequencer_fcurves ( Scene * sce)
static

◆ scene_blend_read_after_liblink()

◆ scene_blend_read_data()

void scene_blend_read_data ( BlendDataReader * reader,
ID * id )
static

Definition at line 1240 of file scene.cc.

References Editing::act_strip, Sculpt::automasking_cavity_curve, Sculpt::automasking_cavity_curve_op, RenderData::bake, BKE_color_managed_view_settings_blend_read_data(), BKE_curvemapping_blend_read(), BKE_curvemapping_init(), BKE_curveprofile_blend_read(), BKE_effector_add_weights(), BKE_image_format_blend_read_data(), BKE_keyingsets_blend_read_data(), BKE_paint_blend_read_data(), BKE_previewimg_blend_read(), BKE_ptcache_blend_read_data(), BKE_rigidbody_world_init_runtime(), BKE_screen_view3d_shading_blend_read_data(), BKE_sculpt_cavity_curves_ensure(), BKE_sound_reset_scene_runtime(), BKE_time_markers_blend_read(), BKE_view_layer_blend_read_data(), blender::seq::blend_read(), BLO_read_data_address, BLO_read_get_new_data_address_no_us(), BLO_read_glob_list(), BLO_read_struct, BLO_read_struct_list, PaintModeSettings::canvas_image, Editing::channels, GP_Sculpt_Settings::cur_falloff, GP_Sculpt_Settings::cur_primitive, Editing::current_meta_strip, UvSculpt::curve_distance_falloff, UnifiedPaintSettings::curve_rand_hue, UnifiedPaintSettings::curve_rand_saturation, UnifiedPaintSettings::curve_rand_value, ToolSettings::curves_sculpt, ToolSettings::custom_bevel_profile_preset, GP_Interpolate_Settings::custom_ipo, Scene::customdata_mask, Scene::customdata_mask_modal, Scene::depsgraph_hash, direct_link_paint_helper(), Scene::display, Scene::ed, RigidBodyWorld::effector_weights, EditingRuntime::final_image_cache, float, Scene::fps_info, ToolSettings::gp_interpolate, ToolSettings::gp_paint, ToolSettings::gp_sculpt, ToolSettings::gp_sculptpaint, ToolSettings::gp_vertexpaint, ToolSettings::gp_weightpaint, Scene::id, id_us_ensure_real(), IDP_BlendDataRead, BakeData::im_format, RenderData::im_format, ToolSettings::imapaint, EditingRuntime::intra_frame_cache, Scene::keyingsets, Scene::layer_properties, link_recurs_seq(), LISTBASE_FOREACH, RigidBodyWorld::ltime, Scene::markers, RenderData::mblur_shutter_curve, EditingRuntime::media_presence, Editing::metastack, RenderData::mode, RigidBodyWorld::numbodies, ParticleEditSettings::object, RigidBodyWorld::objects, ImagePaintSettings::paint, ToolSettings::paint_mode, GP_Sculpt_Settings::paintcursor, ParticleEditSettings::paintcursor, ToolSettings::particle, RigidBodyWorld_Shared::pointcache, Editing::prefetch_job, Scene::preview, EditingRuntime::preview_cache, RigidBodyWorld_Shared::ptcaches, Scene::r, R_NO_CAMERA_SWITCH, Scene::rigidbody_world, Editing::runtime, Scene::runtime, ParticleEditSettings::scene, ToolSettings::sculpt, Editing::seqbase, ToolSettings::sequencer_tool_settings, SceneDisplay::shading, RigidBodyWorld::shared, EditingRuntime::source_image_cache, PointCache::startframe, EditingRuntime::strip_lookup, EditingRuntime::thumbnail_cache, Scene::toolsettings, Scene::transform_spaces, ToolSettings::uvsculpt, Scene::view_layers, Scene::view_settings, RenderData::views, ToolSettings::vpaint, and ToolSettings::wpaint.

Referenced by get_type_info().

◆ scene_blend_write()

void scene_blend_write ( BlendWriter * writer,
ID * id,
const void * id_address )
static

Definition at line 1019 of file scene.cc.

References Sculpt::automasking_cavity_curve, Sculpt::automasking_cavity_curve_op, RenderData::bake, BKE_collection_blend_write_nolib(), BKE_collection_blend_write_prepare_nolib(), BKE_color_managed_view_settings_blend_write(), BKE_curvemapping_blend_write(), BKE_curvemapping_curves_blend_write(), BKE_curveprofile_blend_write(), BKE_id_blend_write(), BKE_image_format_blend_write(), BKE_keyingsets_blend_write(), BKE_paint_blend_write(), BKE_previewimg_blend_write(), BKE_ptcache_blend_write(), BKE_screen_view3d_shading_blend_write(), BKE_time_markers_blend_write(), BKE_view_layer_blend_write(), blender::seq::blend_write(), BLI_assert, BLO_write_id_struct, BLO_write_is_undo(), BLO_write_struct, BLO_write_struct_at_address, Editing::channels, Scene::compositing_node_group, GP_Sculpt_Settings::cur_falloff, GP_Sculpt_Settings::cur_primitive, Scene::cursor, UvSculpt::curve_distance_falloff, ToolSettings::curves_sculpt, ToolSettings::custom_bevel_profile_preset, GP_Interpolate_Settings::custom_ipo, Scene::display, Scene::ed, RigidBodyWorld::effector_weights, ID::flag, BLO_Write_IDBuffer::get(), ToolSettings::gp_interpolate, ToolSettings::gp_paint, ToolSettings::gp_sculpt, ToolSettings::gp_sculptpaint, ToolSettings::gp_vertexpaint, ToolSettings::gp_weightpaint, bNodeTree::id, Collection::id, Scene::id, ID_FLAG_EMBEDDED_DATA, BakeData::im_format, RenderData::im_format, ToolSettings::imapaint, Scene::keyingsets, Scene::layer_properties, ID::lib, LISTBASE_FOREACH, Scene::markers, Scene::master_collection, RenderData::mblur_shutter_curve, MEM_freeN(), MEM_mallocN(), Editing::metastack, blender::bke::node_tree_blend_write(), bNodeTree::owner_id, CurvesSculpt::paint, GpPaint::paint, GpSculptPaint::paint, GpVertexPaint::paint, GpWeightPaint::paint, ImagePaintSettings::paint, Sculpt::paint, VPaint::paint, RigidBodyWorld_Shared::pointcache, Scene::preview, RigidBodyWorld_Shared::ptcaches, Scene::r, R_DOCOMP, Scene::rigidbody_world, RenderData::scemode, ToolSettings::sculpt, Editing::seqbase, ToolSettings::sequencer_tool_settings, SceneDisplay::shading, RigidBodyWorld::shared, Scene::toolsettings, Scene::transform_spaces, ToolSettings::uvsculpt, Scene::view_layers, Scene::view_settings, RenderData::views, ToolSettings::vpaint, and ToolSettings::wpaint.

Referenced by get_type_info().

◆ scene_copy_data()

void scene_copy_data ( Main * bmain,
std::optional< Library * > owner_library,
ID * id_dst,
const ID * id_src,
const int flag )
static

◆ scene_ensure_depsgraph_p()

Depsgraph ** scene_ensure_depsgraph_p ( Main * bmain,
Scene * scene,
ViewLayer * view_layer )
static

◆ scene_foreach_cache()

void scene_foreach_cache ( ID * id,
IDTypeForeachCacheFunctionCallback function_callback,
void * user_data )
static

◆ scene_foreach_id()

◆ scene_foreach_layer_collection()

◆ scene_foreach_paint()

void scene_foreach_paint ( LibraryForeachIDData * data,
Paint * paint,
const bool do_undo_restore,
BlendLibReader * reader,
Paint * paint_old )
static

◆ scene_foreach_path()

void scene_foreach_path ( ID * id,
BPathForeachPathData * bpath_data )
static

◆ scene_foreach_rigidbodyworldSceneLooper()

void scene_foreach_rigidbodyworldSceneLooper ( RigidBodyWorld * ,
ID ** id_pointer,
void * user_data,
const LibraryForeachIDCallbackFlag cb_flag )
static

◆ scene_foreach_toolsettings()

◆ scene_foreach_toolsettings_id_pointer_process()

void scene_foreach_toolsettings_id_pointer_process ( ID ** id_p,
const eSceneForeachUndoPreserveProcess action,
BlendLibReader * reader,
ID ** id_old_p,
const uint cb_flag )
static

◆ scene_foreach_working_space_color()

void scene_foreach_working_space_color ( ID * id,
const IDTypeForeachColorFunctionCallback & fn )
static

Definition at line 995 of file scene.cc.

References BKE_paint_settings_foreach_mode(), and Scene::toolsettings.

Referenced by get_type_info().

◆ scene_free_data()

◆ scene_free_markers()

void scene_free_markers ( Scene * scene,
bool do_id_user )
static

Definition at line 368 of file scene.cc.

References IDP_FreePropertyContent_ex(), LISTBASE_FOREACH_MUTABLE, Scene::markers, and MEM_freeN().

Referenced by scene_free_data().

◆ scene_get_depsgraph_p()

Depsgraph ** scene_get_depsgraph_p ( Scene * scene,
ViewLayer * view_layer,
const bool allocate_ghash_entry )
static

◆ scene_graph_update_tagged()

◆ scene_init_data()

void scene_init_data ( ID * id)
static

Definition at line 155 of file scene.cc.

References ARRAY_SIZE, ToolSettings::autokey_mode, B_UNIT_LENGTH, B_UNIT_MASS, B_UNIT_TEMPERATURE, B_UNIT_TIME, RenderData::bake, BKE_collection_master_add(), BKE_color_managed_display_settings_init(), BKE_color_managed_view_settings_init(), BKE_curvemap_reset(), BKE_curvemapping_add(), BKE_curvemapping_init(), BKE_curvemapping_set_defaults(), BKE_curveprofile_add(), BKE_image_format_init(), BKE_paint_default_curve(), BKE_scene_add_render_view(), BKE_sound_reset_scene_runtime(), BKE_unit_base_of_type_get(), BKE_view_layer_add(), BLI_assert, ParticleEditSettings::brush, CurveMapping::clipr, CurveMapping::cm, COLOR_ROLE_DEFAULT_SEQUENCER, GP_Sculpt_Settings::cur_falloff, GP_Sculpt_Settings::cur_primitive, CURVE_PRESET_BELL, CURVE_PRESET_GAUSS, CURVE_PRESET_MAX, ToolSettings::custom_bevel_profile_preset, DATA_, Scene::display_settings, DNA_struct_default_alloc, DNA_struct_default_get, RenderData::engine, BakeData::filepath, ListBase::first, ToolSettings::gp_sculpt, HD_AUTO, i, BakeData::im_format, RenderData::im_format, IMB_colormanagement_role_colorspace_name_get(), TransformOrientationSlot::index_custom, ListBase::last, UnitSettings::length_unit, UnitSettings::mass_unit, Scene::master_collection, RenderData::mblur_shutter_curve, MEMCMP_STRUCT_AFTER_IS_ZERO, MEMCPY_STRUCT_AFTER, ColorManagedColorspaceSettings::name, Scene::orientation_slots, ToolSettings::particle, PE_BRUSH_CUT, RenderData::pic, Positive, PositiveNegative, PROF_PRESET_LINE, Scene::r, RE_engine_id_BLENDER_EEVEE, Scene::runtime, UnitSettings::scale_length, Scene::sequencer_colorspace_settings, ToolSettings::sequencer_tool_settings, STEREO_LEFT_NAME, STEREO_LEFT_SUFFIX, STEREO_RIGHT_NAME, STEREO_RIGHT_SUFFIX, ParticleBrushData::strength, STRNCPY(), STRNCPY_UTF8, SceneRenderView::suffix, UnitSettings::system, UnitSettings::temperature_unit, UnitSettings::time_unit, blender::seq::tool_settings_init(), Scene::toolsettings, U, Scene::unit, USER_UNIT_METRIC, Scene::view_settings, VIEWLAYER_ADD_NEW, and RenderData::views.

Referenced by get_type_info().

◆ scene_lib_override_apply_post()

void scene_lib_override_apply_post ( ID * id_dst,
ID *  )
static

◆ scene_undo_depsgraph_gen_key()

char * scene_undo_depsgraph_gen_key ( Scene * scene,
ViewLayer * view_layer,
char * key_full )
static

◆ scene_undo_preserve()

void scene_undo_preserve ( BlendLibReader * reader,
ID * id_new,
ID * id_old )
static

Definition at line 1498 of file scene.cc.

References Scene::cursor, scene_foreach_toolsettings(), and Scene::toolsettings.

Referenced by get_type_info().

◆ strip_foreach_member_id_cb()

◆ strip_foreach_path_callback()

◆ View3DCursor::matrix< blender::float3x3 >()

◆ View3DCursor::matrix< blender::float4x4 >()

Variable Documentation

◆ IDType_ID_SCE

IDTypeInfo IDType_ID_SCE = get_type_info()

Definition at line 1565 of file scene.cc.

Referenced by blender::bke::tests::TEST(), and blender::bke::tests::TEST().

◆ RE_engine_id_BLENDER_EEVEE

◆ RE_engine_id_BLENDER_EEVEE_NEXT

const char* RE_engine_id_BLENDER_EEVEE_NEXT = "BLENDER_EEVEE_NEXT"

Only used for versioning. Was used during the transition period between 4.2 and 5.0.

Definition at line 1581 of file scene.cc.

Referenced by blo_do_versions_410(), do_versions_after_linking_500(), and blender::ed::asset::screenshot_preview_exec().

◆ RE_engine_id_BLENDER_WORKBENCH

const char* RE_engine_id_BLENDER_WORKBENCH = "BLENDER_WORKBENCH"

◆ RE_engine_id_CYCLES

const char* RE_engine_id_CYCLES = "CYCLES"