|
Blender V4.5
|
#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.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 |
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 } |
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" |
| #define BKE_LIB_FOREACHID_UNDO_PRESERVE_PROCESS_FUNCTION_CALL | ( | _data, | |
| _do_undo_restore, | |||
| _func_call ) |
Definition at line 556 of file scene.cc.
Referenced by scene_foreach_toolsettings().
| #define BKE_LIB_FOREACHID_UNDO_PRESERVE_PROCESS_IDSUPER_P | ( | _data, | |
| _id_p, | |||
| _do_undo_restore, | |||
| _action, | |||
| _reader, | |||
| _id_old_p, | |||
| _cb_flag ) |
Definition at line 542 of file scene.cc.
Referenced by scene_foreach_paint(), and scene_foreach_toolsettings().
| #define FOREACHID_PROCESS_ID_NOCHECK | ( | _data, | |
| _id_super, | |||
| _cb_flag ) |
Referenced by strip_foreach_member_id_cb().
| #define FOREACHID_PROCESS_IDSUPER | ( | _data, | |
| _id_super, | |||
| _cb_flag ) |
Referenced by strip_foreach_member_id_cb().
| enum eCyclesFeatureSet |
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 2776 of file scene.cc.
References _setlooper_base_step(), BKE_view_layer_default_render(), BKE_view_layer_object_bases_get(), BKE_view_layer_synced_ensure(), ListBase::first, Base::next, and Scene::set.
Referenced by _setlooper_base_step().
| CurveMapping * BKE_paint_default_curve | ( | ) |
Definition at line 140 of file scene.cc.
References BKE_curvemap_reset(), BKE_curvemapping_add(), BKE_curvemapping_init(), BKE_paint_default_curve(), CurveMapping::clipr, CurveMapping::cm, CURVE_PRESET_LINE, and CURVEMAP_SLOPE_POSITIVE.
Referenced by BKE_paint_default_curve(), blo_update_defaults_scene(), brush_blend_read_data(), do_init_default_jitter_curves_in_unified_paint_settings(), and scene_init_data().
| int BKE_render_num_threads | ( | const RenderData * | rd | ) |
Definition at line 2900 of file scene.cc.
References BKE_render_num_threads(), BLI_system_num_threads_override_get(), BLI_system_thread_count(), max_ii(), RenderData::mode, R_FIXED_THREADS, and RenderData::threads.
Referenced by BKE_render_num_threads(), BKE_scene_num_threads(), Freestyle::BlenderStrokeRenderer::BlenderStrokeRenderer(), lineart_create_render_buffer_v3(), and RE_init_threadcount().
| int BKE_render_preview_pixel_size | ( | const RenderData * | r | ) |
Definition at line 2942 of file scene.cc.
References BKE_render_preview_pixel_size(), RenderData::preview_pixel_size, and U.
Referenced by BKE_render_preview_pixel_size(), blender::draw::overlay::Instance::init(), blender::eevee::Film::init(), and blender::eevee::Sampling::init().
| void BKE_render_resolution | ( | const RenderData * | r, |
| const bool | use_crop, | ||
| int * | r_width, | ||
| int * | r_height ) |
Definition at line 2927 of file scene.cc.
References BKE_render_resolution(), RenderData::border, RenderData::mode, R_BORDER, R_CROP, RenderData::size, rctf::xmax, rctf::xmin, RenderData::xsch, rctf::ymax, rctf::ymin, and RenderData::ysch.
Referenced by BKE_build_template_variables_for_render_path(), BKE_image_get_size(), BKE_render_resolution(), blender::io::alembic::ABCCameraWriter::create_alembic_objects(), do_render_compositor_scene(), do_version_glare_node_bloom_strength(), do_version_glare_node_options_to_inputs(), ED_space_image_get_size(), blender::render::Context::get_render_size(), image_main_region_draw(), is_compositing_possible(), is_compositing_possible_on_gpu(), blender::io::grease_pencil::GreasePencilExporter::prepare_render_params(), blender::seq::proxy_rebuild(), RE_PreviewRender(), RE_ReadRenderResult(), render_border_exec(), render_init_from_main(), render_view_open(), screen_opengl_render_init(), blender::seq::seq_render_scene_strip(), blender::ed::vse::sequencer_view_all_preview_exec(), blender::ed::vse::sequencer_view_zoom_ratio_exec(), and view3d_set_1_to_1_viewborder().
Definition at line 2010 of file scene.cc.
References BKE_id_new(), BKE_scene_add(), Scene::id, id_us_ensure_real(), and id_us_min().
Referenced by BKE_scene_add(), BKE_scene_duplicate(), Freestyle::BlenderStrokeRenderer::BlenderStrokeRenderer(), object_preview_scene_create(), scene_add(), setup_app_data(), blender::nodes::tests::TEST_F(), blender::nodes::tests::TEST_F(), blender::nodes::tests::TEST_F(), and blender::bke::tests::WholeIDTestData::WholeIDTestData().
| SceneRenderView * BKE_scene_add_render_view | ( | Scene * | sce, |
| const char * | name ) |
Return default view.
Definition at line 2709 of file scene.cc.
References BKE_scene_add_render_view(), BLI_addtail(), BLI_uniquename(), DATA_, MEM_callocN(), SceneRenderView::name, offsetof, Scene::r, STRNCPY(), and RenderData::views.
Referenced by BKE_scene_add_render_view(), blo_do_versions_270(), render_view_add_exec(), and scene_init_data().
| void BKE_scene_allocate_depsgraph_hash | ( | Scene * | scene | ) |
Definition at line 3309 of file scene.cc.
References BKE_scene_allocate_depsgraph_hash(), BLI_ghash_new(), Scene::depsgraph_hash, depsgraph_key_compare(), and depsgraph_key_hash().
Referenced by BKE_scene_allocate_depsgraph_hash(), and BKE_scene_ensure_depsgraph_hash().
Definition at line 2862 of file scene.cc.
References BKE_scene_base_flag_to_objects(), BKE_scene_object_base_flag_sync_from_base(), BKE_view_layer_object_bases_get(), BKE_view_layer_synced_ensure(), and LISTBASE_FOREACH.
Referenced by BKE_scene_base_flag_to_objects(), and blender::ed::transform::set_trans_object_base_flags().
| int BKE_scene_base_iter_next | ( | Depsgraph * | depsgraph, |
| SceneBaseIter * | iter, | ||
| Scene ** | scene, | ||
| int | val, | ||
| Base ** | base, | ||
| Object ** | ob ) |
Used by meta-balls, return all objects (including duplis) existing in the scene (including scene's sets).
Definition at line 2078 of file scene.cc.
References BKE_scene_base_iter_next(), BKE_view_layer_context_active_PLACEHOLDER(), BKE_view_layer_default_render(), BKE_view_layer_object_bases_get(), BKE_view_layer_synced_ensure(), copy_m4_m4(), DEG_get_evaluated_view_layer(), SceneBaseIter::dupli_refob, SceneBaseIter::duplilist, SceneBaseIter::dupob, F_DUPLI, F_SCENE, F_START, ListBase::first, free_object_duplilist(), DupliObject::mat, Base::next, DupliObject::next, DupliObject::ob, OB_DUPLI, OB_FROMDUPLI, object_duplilist(), SceneBaseIter::omat, SceneBaseIter::phase, and Object::runtime.
Referenced by BKE_scene_base_iter_next(), and init_meta().
Definition at line 2226 of file scene.cc.
References BKE_scene_camera_switch_find(), BKE_scene_ctime_get(), LISTBASE_FOREACH, Scene::markers, MAXFRAME, RenderData::mode, OB_HIDE_RENDER, Scene::r, and R_NO_CAMERA_SWITCH.
Referenced by BKE_scene_camera_switch_find(), BKE_scene_camera_switch_update(), and ED_update_for_newframe().
| bool BKE_scene_camera_switch_update | ( | Scene * | scene | ) |
Definition at line 2267 of file scene.cc.
References BKE_scene_camera_switch_find(), BKE_scene_camera_switch_update(), Scene::camera, DEG_id_tag_update(), Scene::id, ID_RECALC_PARAMETERS, and ID_RECALC_SYNC_TO_EVAL.
Referenced by BKE_scene_camera_switch_update(), do_render_compositor_scene(), do_render_full_pipeline(), ed_marker_camera_bind_exec(), ed_marker_move_apply(), blender::io::grease_pencil::PDFExporter::export_scene(), blender::io::grease_pencil::SVGExporter::export_scene(), MOD_lineart_compute_feature_lines_v3(), blender::io::grease_pencil::persmat_from_camera_object(), RE_engine_frame_set(), screen_opengl_render_anim_step(), screen_render_single_layer_set(), blender::seq::seq_render_scene_strip(), and sound_bake_animation_exec().
Definition at line 1995 of file scene.cc.
References BKE_scene_can_be_removed(), ID_IS_LINKED, LISTBASE_FOREACH, and Main::scenes.
Referenced by BKE_scene_can_be_removed(), and scene_delete_poll().
| bool BKE_scene_check_rigidbody_active | ( | const Scene * | scene | ) |
Definition at line 2894 of file scene.cc.
References BKE_scene_check_rigidbody_active(), RigidBodyWorld::flag, RigidBodyWorld::group, RBW_FLAG_MUTED, and Scene::rigidbody_world.
Referenced by BKE_rigidbody_eval_simulation(), BKE_rigidbody_rebuild_sim(), and BKE_scene_check_rigidbody_active().
Definition at line 1819 of file scene.cc.
References BKE_scene_copy_data_eevee(), and Scene::eevee.
Referenced by BKE_scene_copy_data_eevee(), BKE_scene_duplicate(), Freestyle::BlenderStrokeRenderer::BlenderStrokeRenderer(), and scene_copy_data().
| float BKE_scene_ctime_get | ( | const Scene * | scene | ) |
Return fractional frame number taking into account sub-frames and time remapping. This the time value used by animation, modifiers and physics evaluation.
Definition at line 2367 of file scene.cc.
References BKE_scene_ctime_get(), BKE_scene_frame_to_ctime(), RenderData::cfra, and Scene::r.
Referenced by action_layer_next_exec(), action_layer_prev_exec(), BKE_cachefile_filepath_get(), BKE_object_eval_constraints(), BKE_pose_constraints_evaluate(), BKE_pose_eval_bone(), BKE_pose_eval_cleanup(), BKE_pose_eval_init_ik(), BKE_pose_iktree_evaluate(), BKE_pose_splineik_evaluate(), BKE_pose_where_is(), BKE_ptcache_id_time(), BKE_scene_camera_switch_find(), BKE_scene_ctime_get(), DEG_evaluate_on_refresh(), blender::deg::Depsgraph::Depsgraph(), draw_current_frame(), dynamicPaint_brushMeshCalculateVelocity(), dynamicPaint_brushObjectCalculateVelocity(), dynamicPaint_doStep(), explodeMesh(), meshcache_do(), modify_mesh(), blender::nodes::node_geo_input_scene_time_cc::node_exec(), blender::ed::transform::ObjectToTransData(), particle_system_minmax(), pointdensity_cache_psys(), RE_RenderAnim(), blender::ed::greasepencil::retrieve_visible_drawings(), and blender::ed::transform::special_aftertrans_update__object().
| void BKE_scene_disable_color_management | ( | Scene * | scene | ) |
Definition at line 2876 of file scene.cc.
References BKE_scene_disable_color_management(), ColorManagedDisplaySettings::display_device, Scene::display_settings, IMB_colormanagement_display_get_none_name(), IMB_colormanagement_view_get_raw_or_default_name(), STRNCPY(), Scene::view_settings, and ColorManagedViewSettings::view_transform.
Referenced by BKE_scene_disable_color_management(), blo_do_versions_260(), and blo_do_versions_400().
| Scene * BKE_scene_duplicate | ( | Main * | bmain, |
| Scene * | sce, | ||
| eSceneCopyMethod | type ) |
Definition at line 1825 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_scene_duplicate(), BKE_sound_destroy_scene(), BKE_sound_reset_scene_runtime(), BKE_toolsettings_copy(), BKE_toolsettings_free(), BLI_assert, 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_REMAP_FORCE_OBDATA_IN_EDITMODE, 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_SUBPROCESS, LISTBASE_FOREACH, Scene::master_collection, RenderData::mblur_shutter_curve, ID::name, 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, U, Scene::unit, USER_DUP_LINKED_ID, USER_DUP_OBJECT, Scene::view_layers, Scene::view_settings, RenderData::views, and Scene::world.
Referenced by BKE_scene_duplicate(), and scene_add().
Definition at line 3427 of file scene.cc.
References BKE_scene_ensure_depsgraph(), and scene_ensure_depsgraph_p().
Referenced by BKE_scene_ensure_depsgraph(), BKE_scene_view_layer_graph_evaluated_ensure(), blender::ed::transform::count_proportional_objects(), CTX_data_depsgraph_pointer(), ED_render_engine_changed(), ED_scene_change_update(), format_stats(), BlenderContext::get_depsgraph(), pygpu_offscreen_draw_view3d(), blender::seq::seq_render_scene_strip(), blender::ed::transform::set_trans_object_base_flags(), update_physics_cache(), wm_draw_update_test_window(), and wm_event_do_depsgraph().
| void BKE_scene_ensure_depsgraph_hash | ( | Scene * | scene | ) |
Definition at line 3315 of file scene.cc.
References BKE_scene_allocate_depsgraph_hash(), BKE_scene_ensure_depsgraph_hash(), and Scene::depsgraph_hash.
Referenced by BKE_scene_ensure_depsgraph_hash(), and scene_get_depsgraph_p().
| Scene * BKE_scene_find_from_collection | ( | const Main * | bmain, |
| const Collection * | collection ) |
Definition at line 2213 of file scene.cc.
References BKE_scene_find_from_collection(), BKE_view_layer_has_collection(), LISTBASE_FOREACH, and Main::scenes.
Referenced by BKE_scene_find_from_collection().
| 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 2305 of file scene.cc.
References BKE_scene_find_last_marker_name(), TimeMarker::frame, LISTBASE_FOREACH, Scene::markers, MAXFRAME, and TimeMarker::name.
Referenced by BKE_scene_find_last_marker_name(), and stampdata().
| const char * BKE_scene_find_marker_name | ( | const Scene * | scene, |
| int | frame ) |
Definition at line 2278 of file scene.cc.
References BKE_scene_find_marker_name(), ListBase::first, TimeMarker::frame, ListBase::last, Scene::markers, TimeMarker::name, TimeMarker::next, and TimeMarker::prev.
Referenced by BKE_scene_find_marker_name(), and draw_selected_name().
| float BKE_scene_frame_get | ( | const Scene * | scene | ) |
Get current fractional frame based on frame and sub-frame.
Definition at line 2381 of file scene.cc.
References BKE_scene_frame_get(), RenderData::cfra, Scene::r, and RenderData::subframe.
Referenced by blender::animrig::autokeyframe_cfra_can_key(), blender::animrig::autokeyframe_object(), blender::animrig::autokeyframe_object(), blender::animrig::autokeyframe_pchan(), blender::animrig::autokeyframe_pose_channel(), BKE_constraint_apply_for_object(), BKE_constraint_apply_for_pose(), BKE_scene_frame_get(), BKE_scene_graph_update_for_newframe_ex(), DEG_evaluate_on_refresh(), delete_key_button_exec(), delete_key_using_keying_set(), delete_key_v3d_without_keying_set(), blender::deg::Depsgraph::Depsgraph(), depthdropper_depth_set(), engine_depsgraph_init(), blender::ed::vse::freeze_frame_add_from_strip_selection(), insert_key(), insert_key_button_exec(), insert_key_with_keyingset(), keyframe_jump_exec(), blender::ed::outliner::outliner_object_set_flag_recursive_fn(), paste_get_y_offset(), pose_propagate_exec(), render_update_depsgraph(), blender::ed::vse::retiming_key_add_new_for_strip(), blender::ed::vse::sequencer_retiming_key_add_exec(), blender::ed::vse::sequencer_text_editing_active_poll(), blender::seq::strip_update_sound_properties(), ui_apply_but_autokey(), UI_block_end_ex(), and UI_context_update_anim_flag().
| void BKE_scene_frame_set | ( | Scene * | scene, |
| float | frame ) |
Set current frame and sub-frame based on a fractional frame.
Definition at line 2386 of file scene.cc.
References BKE_scene_frame_set(), RenderData::cfra, modf, Scene::r, and RenderData::subframe.
Referenced by bc_update_scene(), BKE_scene_frame_set(), deg_flush_updates_and_refresh(), keyframe_jump_exec(), lineart_bake_startjob(), RE_engine_frame_set(), and blender::seq::seq_render_scene_strip().
| int BKE_scene_frame_snap_by_seconds | ( | Scene * | scene, |
| double | interval_in_seconds, | ||
| int | frame ) |
Definition at line 2323 of file scene.cc.
References BKE_scene_frame_snap_by_seconds(), FPS, mod_i(), and round_db_to_int().
Referenced by append_second_snap_target(), and BKE_scene_frame_snap_by_seconds().
| 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 2372 of file scene.cc.
References BKE_scene_frame_to_ctime(), RenderData::framelen, Scene::r, and RenderData::subframe.
Referenced by BKE_ptcache_id_time(), BKE_scene_ctime_get(), BKE_scene_frame_to_ctime(), DEG_evaluate_on_framechange(), and object_add_or_copy_particle_system().
| void BKE_scene_free_depsgraph_hash | ( | Scene * | scene | ) |
Definition at line 3322 of file scene.cc.
References BKE_scene_free_depsgraph_hash(), BLI_ghash_free(), Scene::depsgraph_hash, depsgraph_key_free(), and depsgraph_key_value_free().
Referenced by BKE_scene_free_depsgraph_hash(), scene_free_data(), and wm_block_autorun_warning_enable_scripts().
Definition at line 3331 of file scene.cc.
References BKE_scene_free_view_layer_depsgraph(), BLI_ghash_remove(), Scene::depsgraph_hash, depsgraph_key_free(), and depsgraph_key_value_free().
Referenced by BKE_scene_free_view_layer_depsgraph(), and ED_scene_view_layer_delete().
Definition at line 3414 of file scene.cc.
References BKE_scene_get_depsgraph(), BKE_scene_has_view_layer(), BLI_assert, BLI_ghash_lookup(), Scene::depsgraph_hash, and DepsgraphKey::view_layer.
Referenced by BKE_scene_get_depsgraph(), CTX_data_depsgraph_on_load(), DRW_cache_free_old_batches(), render_endjob(), screen_animation_step_invoke(), sound_jack_sync_callback(), view3d_main_region_listener(), and wm_xr_session_scene_and_depsgraph_get().
| void BKE_scene_graph_evaluated_ensure | ( | Depsgraph * | depsgraph, |
| Main * | bmain ) |
Definition at line 2623 of file scene.cc.
References BKE_scene_graph_evaluated_ensure(), and scene_graph_update_tagged().
Referenced by BKE_scene_graph_evaluated_ensure(), BKE_sculpt_mask_layers_ensure(), blender::ed::transform::create_trans_data(), CTX_data_ensure_evaluated_depsgraph(), blender::ed::object::data_xform_container_update_all(), ED_object_particle_edit_mode_enter_ex(), ED_object_texture_paint_mode_enter_ex(), blender::io::ply::exporter_main(), blender::io::stl::exporter_main(), blender::ed::sculpt_paint::init_sculpt_mode_session(), blender::io::obj::OBJDepsgraph::OBJDepsgraph(), blender::ed::object::object_clear_transform_generic_exec(), blender::ed::object::object_xform_skip_child_container_update_all(), screen_opengl_render_doit(), snap_sel_to_grid_exec(), snap_selected_to_location_rotation(), blender::ed::sculpt_paint::undo::step_decode(), blender::ed::transform::transform_convert_mesh_crazyspace_detect(), and wm_xr_session_do_depsgraph().
| void BKE_scene_graph_update_for_newframe | ( | Depsgraph * | depsgraph | ) |
Definition at line 2697 of file scene.cc.
References BKE_scene_graph_update_for_newframe(), and BKE_scene_graph_update_for_newframe_ex().
Referenced by blender::ed::object::apply_grease_pencil_for_modifier_all_keyframes(), blender::ed::object::bake_simulation::bake_geometry_nodes_startjob(), blender::ed::greasepencil::bake_grease_pencil_animation_exec(), BKE_ptcache_bake(), BKE_scene_graph_update_for_newframe(), ED_update_for_newframe(), blender::io::grease_pencil::PDFExporter::export_scene(), blender::io::grease_pencil::SVGExporter::export_scene(), blender::io::alembic::export_startjob(), blender::io::usd::export_to_stage(), FRS_do_stroke_rendering(), blender::ed::greasepencil::grease_pencil_reproject_exec(), lineart_bake_startjob(), motionpaths_calc_update_scene(), redraw_timer_step(), screen_opengl_render_anim_step(), screen_opengl_render_end(), blender::seq::seq_render_scene_strip(), blender::ed::object::bake_simulation::simulate_to_frame_startjob(), sound_bake_animation_exec(), and blender::io::obj::OBJDepsgraph::update_for_newframe().
| void BKE_scene_graph_update_for_newframe_ex | ( | Depsgraph * | depsgraph, |
| bool | clear_recalc ) |
Applies changes right away, does all sets too.
Definition at line 2628 of file scene.cc.
References BKE_callback_exec_id(), BKE_callback_exec_id_depsgraph(), BKE_CB_EVT_FRAME_CHANGE_POST, BKE_CB_EVT_FRAME_CHANGE_PRE, BKE_image_editors_update_frame(), BKE_scene_frame_get(), BKE_scene_graph_update_for_newframe_ex(), BKE_scene_update_sound(), RenderData::cfra, DEG_editors_update(), DEG_evaluate_on_framechange(), DEG_evaluate_on_refresh(), DEG_EVALUATE_SYNC_WRITEBACK_YES, DEG_get_bmain(), DEG_get_input_scene(), DEG_graph_relations_update(), DEG_ids_clear_recalc(), DEG_ids_restore_recalc(), DEG_is_fully_evaluated(), Scene::id, and Scene::r.
Referenced by BKE_scene_graph_update_for_newframe(), BKE_scene_graph_update_for_newframe_ex(), engine_depsgraph_init(), and RE_engine_frame_set().
| void BKE_scene_graph_update_tagged | ( | Depsgraph * | depsgraph, |
| Main * | bmain ) |
Definition at line 2618 of file scene.cc.
References BKE_scene_graph_update_tagged(), and scene_graph_update_tagged().
Referenced by animviz_calc_motionpaths(), blender::ed::object::bake(), BKE_scene_graph_update_tagged(), BKE_scene_view_layer_graph_evaluated_ensure(), blender::io::AbstractHierarchyIteratorInvisibleTest::depsgraph_create(), BlendfileLoadingBaseTest::depsgraph_create(), blender::ed::sculpt_paint::dyntopo::disable(), blender::ed::object::duplibase_for_convert(), blender::ed::sculpt_paint::dyntopo::enable_ex(), blender::io::alembic::export_startjob(), blender::io::usd::export_startjob(), blender::io::usd::export_to_stage(), blender::ed::object::object_convert_exec(), object_preview_scene_create(), blender::ed::object::vertex_parent_set_exec(), and wm_event_do_depsgraph().
| void BKE_scene_groups_relink | ( | Scene * | sce | ) |
Definition at line 1988 of file scene.cc.
References BKE_rigidbody_world_groups_relink(), BKE_scene_groups_relink(), and Scene::rigidbody_world.
Referenced by BKE_scene_groups_relink().
Definition at line 2208 of file scene.cc.
References BKE_scene_has_view_layer(), BLI_findindex(), and Scene::view_layers.
Referenced by BKE_scene_get_depsgraph(), BKE_scene_has_view_layer(), and scene_get_depsgraph_p().
| void BKE_scene_multiview_filepath_get | ( | const SceneRenderView * | srv, |
| const char * | filepath, | ||
| char * | r_filepath ) |
Definition at line 3120 of file scene.cc.
References BKE_scene_multiview_filepath_get(), BLI_path_suffix(), BLI_strncpy(), FILE_MAX, and SceneRenderView::suffix.
Referenced by BKE_scene_multiview_filepath_get(), and RE_RenderAnim().
| bool BKE_scene_multiview_is_render_view_active | ( | const RenderData * | rd, |
| const SceneRenderView * | srv ) |
Return whether to render this SceneRenderView.
Definition at line 3000 of file scene.cc.
References BKE_scene_multiview_is_render_view_active(), SceneRenderView::name, R_MULTIVIEW, SCE_VIEW_DISABLE, SCE_VIEWS_FORMAT_MULTIVIEW, RenderData::scemode, STEREO_LEFT_NAME, STEREO_RIGHT_NAME, STR_ELEM, SceneRenderView::viewflag, and RenderData::views_format.
Referenced by BKE_scene_multiview_is_render_view_active(), BKE_scene_multiview_is_render_view_first(), BKE_scene_multiview_is_render_view_last(), BKE_scene_multiview_render_view_findindex(), BKE_scene_multiview_view_id_get(), BKE_scene_multiview_view_prefix_get(), check_valid_camera_multiview(), blender::ed::space_node::compo_startjob(), image_update_views_format(), image_viewer_create_views(), image_views_match_render_views(), RE_RenderAnim(), render_result_views_new(), and screen_opengl_views_setup().
| bool BKE_scene_multiview_is_render_view_first | ( | const RenderData * | rd, |
| const char * | viewname ) |
Definition at line 3026 of file scene.cc.
References BKE_scene_multiview_is_render_view_active(), BKE_scene_multiview_is_render_view_first(), LISTBASE_FOREACH, R_MULTIVIEW, RenderData::scemode, STREQ, and RenderData::views.
Referenced by BKE_scene_multiview_is_render_view_first(), and blender::render::Context::viewer_output_to_viewer_image().
| bool BKE_scene_multiview_is_render_view_last | ( | const RenderData * | rd, |
| const char * | viewname ) |
Definition at line 3045 of file scene.cc.
References BKE_scene_multiview_is_render_view_active(), BKE_scene_multiview_is_render_view_last(), LISTBASE_FOREACH_BACKWARD, R_MULTIVIEW, RenderData::scemode, STREQ, and RenderData::views.
Referenced by BKE_scene_multiview_is_render_view_last().
| bool BKE_scene_multiview_is_stereo3d | ( | const RenderData * | rd | ) |
Definition at line 2983 of file scene.cc.
References BKE_scene_multiview_is_stereo3d(), BLI_findstring(), offsetof, R_MULTIVIEW, SCE_VIEW_DISABLE, RenderData::scemode, STEREO_LEFT_NAME, STEREO_RIGHT_NAME, and RenderData::views.
Referenced by BKE_image_ensure_viewer_views(), BKE_scene_multiview_is_stereo3d(), screen_opengl_views_setup(), and view3d_stereo3d_active().
| int BKE_scene_multiview_num_videos_get | ( | const RenderData * | rd | ) |
Definition at line 3227 of file scene.cc.
References BKE_imtype_is_movie(), BKE_scene_multiview_num_videos_get(), BKE_scene_multiview_num_views_get(), RenderData::im_format, ImageFormatData::imtype, R_IMF_VIEWS_STEREO_3D, R_MULTIVIEW, RenderData::scemode, and ImageFormatData::views_format.
Referenced by BKE_scene_multiview_num_videos_get(), RE_RenderAnim(), and screen_opengl_render_anim_init().
| int BKE_scene_multiview_num_views_get | ( | const RenderData * | rd | ) |
Definition at line 2952 of file scene.cc.
References BKE_scene_multiview_num_views_get(), BLI_findstring(), LISTBASE_FOREACH, offsetof, R_MULTIVIEW, SCE_VIEW_DISABLE, SCE_VIEWS_FORMAT_STEREO_3D, RenderData::scemode, STEREO_LEFT_NAME, STEREO_RIGHT_NAME, SceneRenderView::viewflag, RenderData::views, and RenderData::views_format.
Referenced by BKE_scene_multiview_num_videos_get(), BKE_scene_multiview_num_views_get(), do_render_sequencer(), blender::nodes::node_composite_file_output_cc::FileOutputOperation::execute_single_layer(), image_views_match_render_views(), screen_opengl_render_init(), blender::seq::seq_num_files(), blender::seq::seq_proxy_context_count(), blender::seq::seq_render_image_strip(), blender::seq::seq_render_movie_strip(), and blender::seq::seq_render_scene_strip().
| SceneRenderView * BKE_scene_multiview_render_view_findindex | ( | const RenderData * | rd, |
| const int | view_id ) |
Definition at line 3064 of file scene.cc.
References BKE_scene_multiview_is_render_view_active(), BKE_scene_multiview_render_view_findindex(), ListBase::first, SceneRenderView::next, R_MULTIVIEW, RenderData::scemode, and RenderData::views.
Referenced by BKE_scene_multiview_render_view_findindex(), and BKE_scene_multiview_render_view_name_get().
| const char * BKE_scene_multiview_render_view_name_get | ( | const RenderData * | rd, |
| const int | view_id ) |
Definition at line 3083 of file scene.cc.
References BKE_scene_multiview_render_view_findindex(), BKE_scene_multiview_render_view_name_get(), and SceneRenderView::name.
Referenced by BKE_scene_multiview_render_view_name_get(), BKE_scene_multiview_view_id_suffix_get(), and blender::seq::seq_render_scene_strip().
| void BKE_scene_multiview_videos_dimensions_get | ( | const RenderData * | rd, |
| const size_t | width, | ||
| const size_t | height, | ||
| size_t * | r_width, | ||
| size_t * | r_height ) |
Definition at line 3207 of file scene.cc.
References BKE_scene_multiview_videos_dimensions_get(), Stereo3dFormat::display_mode, Stereo3dFormat::flag, RenderData::im_format, IMB_stereo3d_write_dimensions(), R_IMF_VIEWS_STEREO_3D, R_MULTIVIEW, S3D_SQUEEZED_FRAME, RenderData::scemode, ImageFormatData::stereo3d_format, and ImageFormatData::views_format.
Referenced by BKE_scene_multiview_videos_dimensions_get(), get_videos_dimensions(), and screen_opengl_render_anim_init().
| 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 3128 of file scene.cc.
References BKE_scene_multiview_view_filepath_get(), BLI_findstring(), BLI_path_suffix(), BLI_strncpy(), FILE_MAX, offsetof, STRNCPY(), SceneRenderView::suffix, and RenderData::views.
Referenced by BKE_image_render_write(), BKE_scene_multiview_view_filepath_get(), and image_save_single().
| int BKE_scene_multiview_view_id_get | ( | const RenderData * | rd, |
| const char * | viewname ) |
Definition at line 3094 of file scene.cc.
References BKE_scene_multiview_is_render_view_active(), BKE_scene_multiview_view_id_get(), ListBase::first, SceneRenderView::name, SceneRenderView::next, R_MULTIVIEW, RenderData::scemode, STREQ, and RenderData::views.
Referenced by BKE_image_acquire_multilayer_view_ibuf(), BKE_scene_multiview_view_id_get(), image_buffer_rect_update(), RE_ResultGet32(), blender::ed::vse::sequencer_ibuf_get(), and blender::render::Context::viewer_output_to_viewer_image().
| const char * BKE_scene_multiview_view_id_suffix_get | ( | const RenderData * | rd, |
| const int | view_id ) |
Definition at line 3166 of file scene.cc.
References BKE_scene_multiview_render_view_name_get(), BKE_scene_multiview_view_id_suffix_get(), BKE_scene_multiview_view_suffix_get(), R_MULTIVIEW, and RenderData::scemode.
Referenced by BKE_scene_multiview_view_id_suffix_get(), blender::seq::open_anim_file_multiview(), RE_RenderAnim(), RE_WriteRenderViewsMovie(), screen_opengl_render_anim_init(), blender::seq::seq_anim_add_suffix(), and blender::seq::seq_multiview_name().
| void BKE_scene_multiview_view_prefix_get | ( | Scene * | scene, |
| const char * | filepath, | ||
| char * | r_prefix, | ||
| const char ** | r_ext ) |
Definition at line 3176 of file scene.cc.
References BKE_scene_multiview_is_render_view_active(), BKE_scene_multiview_view_prefix_get(), BLI_assert, BLI_str_rpartition(), BLI_strncpy(), LISTBASE_FOREACH, Scene::r, STREQLEN, and RenderData::views.
Referenced by blender::seq::add_movie_strip(), blender::seq::add_reload_new_file(), BKE_scene_multiview_view_prefix_get(), image_update_views_format(), blender::seq::open_anim_file_multiview(), blender::seq::seq_image_strip_is_multiview_render(), blender::seq::seq_proxy_multiview_context_invalid(), and blender::seq::seq_render_image_strip_view().
| const char * BKE_scene_multiview_view_suffix_get | ( | const RenderData * | rd, |
| const char * | viewname ) |
Definition at line 3149 of file scene.cc.
References BKE_scene_multiview_view_suffix_get(), BLI_findstring(), offsetof, SceneRenderView::suffix, and RenderData::views.
Referenced by BKE_camera_multiview_render(), BKE_scene_multiview_view_id_suffix_get(), BKE_scene_multiview_view_suffix_get(), and blender::nodes::node_composite_file_output_cc::FileOutputOperation::get_multi_layer_exr_image_path().
| int BKE_scene_num_threads | ( | const Scene * | scene | ) |
Definition at line 2922 of file scene.cc.
References BKE_render_num_threads(), BKE_scene_num_threads(), and Scene::r.
Referenced by BKE_scene_num_threads(), blender::ed::object::init_multiresbake_job(), blender::ed::object::multiresbake_image_exec_locked(), proj_paint_state_thread_init(), sb_cf_threads_run(), and sb_sfesf_threads_run().
| 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 2870 of file scene.cc.
References Object::base_flag, BKE_scene_object_base_flag_sync_from_base(), Base::flag, and Base::object.
Referenced by blender::ed::object::base_select(), BKE_scene_base_flag_to_objects(), BKE_scene_object_base_flag_sync_from_base(), 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().
Check if there is any instance of the object in the scene.
Definition at line 2019 of file scene.cc.
References BKE_scene_object_find(), BKE_view_layer_object_bases_get(), BKE_view_layer_synced_ensure(), BLI_findptr(), LISTBASE_FOREACH, offsetof, and Scene::view_layers.
Referenced by BKE_scene_object_find().
Definition at line 2030 of file scene.cc.
References BKE_scene_object_find_by_name(), BKE_view_layer_object_bases_get(), BKE_view_layer_synced_ensure(), LISTBASE_FOREACH, STREQ, and Scene::view_layers.
Referenced by BKE_scene_object_find_by_name(), and camera_multiview_advanced().
| int BKE_scene_orientation_get_index | ( | Scene * | scene, |
| int | slot_index ) |
Definition at line 2436 of file scene.cc.
References BKE_scene_orientation_get_index(), BKE_scene_orientation_slot_get(), and BKE_scene_orientation_slot_get_index().
Referenced by BKE_scene_orientation_get_index(), blender::ed::transform::calc_gizmo_stats(), blender::ed::transform::calc_orientation_from_type(), blender::ed::transform::gizmo_mesh_extrude_refresh(), knife_constrain_axis(), v3d_cursor_snap_update(), and view3d_ruler_item_mousemove().
| int BKE_scene_orientation_get_index_from_flag | ( | Scene * | scene, |
| int | flag ) |
Definition at line 2442 of file scene.cc.
References BKE_scene_orientation_get_index_from_flag(), BKE_scene_orientation_slot_get_from_flag(), and BKE_scene_orientation_slot_get_index().
Referenced by BKE_scene_orientation_get_index_from_flag(), blender::ed::transform::WIDGETGROUP_gizmo_refresh(), and blender::ed::transform::WIDGETGROUP_xform_cage_refresh().
| TransformOrientationSlot * BKE_scene_orientation_slot_get | ( | Scene * | scene, |
| int | slot_index ) |
Definition at line 2397 of file scene.cc.
References BKE_scene_orientation_slot_get(), TransformOrientationSlot::flag, Scene::orientation_slots, SCE_ORIENT_DEFAULT, and SELECT.
Referenced by BKE_scene_orientation_get_index(), BKE_scene_orientation_slot_get(), BKE_scene_orientation_slot_get_from_flag(), gizmo_mesh_spin_init_draw_prepare(), blender::ed::transform::WIDGETGROUP_xform_cage_draw_prepare(), and blender::ed::transform::WIDGETGROUP_xform_shear_draw_prepare().
| TransformOrientationSlot * BKE_scene_orientation_slot_get_from_flag | ( | Scene * | scene, |
| int | flag ) |
Definition at line 2405 of file scene.cc.
References BKE_scene_orientation_slot_get(), BKE_scene_orientation_slot_get_from_flag(), BLI_assert, SCE_ORIENT_DEFAULT, SCE_ORIENT_ROTATE, SCE_ORIENT_SCALE, SCE_ORIENT_TRANSLATE, V3D_GIZMO_SHOW_OBJECT_ROTATE, V3D_GIZMO_SHOW_OBJECT_SCALE, and V3D_GIZMO_SHOW_OBJECT_TRANSLATE.
Referenced by BKE_scene_orientation_get_index_from_flag(), BKE_scene_orientation_slot_get_from_flag(), blender::ed::transform::gizmo_xform_message_subscribe(), blender::ed::transform::WIDGETGROUP_gizmo_draw_prepare(), blender::ed::transform::WIDGETGROUP_gizmo_invoke_prepare(), and blender::ed::transform::WIDGETGROUP_xform_shear_refresh().
| int BKE_scene_orientation_slot_get_index | ( | const TransformOrientationSlot * | orient_slot | ) |
Definition at line 2429 of file scene.cc.
References BKE_scene_orientation_slot_get_index(), TransformOrientationSlot::index_custom, TransformOrientationSlot::type, and V3D_ORIENT_CUSTOM.
Referenced by BKE_scene_orientation_get_index(), BKE_scene_orientation_get_index_from_flag(), BKE_scene_orientation_slot_get_index(), blender::ed::transform::WIDGETGROUP_gizmo_invoke_prepare(), and blender::ed::transform::WIDGETGROUP_xform_shear_refresh().
| 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.
| orientation | If this is V3D_ORIENT_CUSTOM or greater, the custom transform orientation with index orientation - V3D_ORIENT_CUSTOM gets activated. |
Definition at line 2422 of file scene.cc.
References BKE_scene_orientation_slot_set_index(), TransformOrientationSlot::index_custom, TransformOrientationSlot::type, and V3D_ORIENT_CUSTOM.
Referenced by BKE_scene_orientation_slot_set_index(), and blender::ed::transform::select_orientation_exec().
| 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 3245 of file scene.cc.
References BKE_scene_ppm_get(), RenderData::ppm_base, RenderData::ppm_factor, UNLIKELY, RenderData::xasp, and RenderData::yasp.
Referenced by BKE_scene_ppm_get(), image_save_single(), RE_InitState(), render_result_from_bake(), render_result_new(), and blender::compositor::FileOutput::save().
| bool BKE_scene_remove_render_view | ( | Scene * | scene, |
| SceneRenderView * | srv ) |
Definition at line 2728 of file scene.cc.
References RenderData::actview, BKE_scene_remove_render_view(), BLI_findindex(), BLI_remlink(), ListBase::first, ListBase::last, MEM_freeN(), Scene::r, and RenderData::views.
Referenced by BKE_scene_remove_render_view(), and render_view_remove_exec().
| void BKE_scene_remove_rigidbody_object | ( | Main * | bmain, |
| Scene * | scene, | ||
| Object * | ob, | ||
| const bool | free_us ) |
Definition at line 2333 of file scene.cc.
References BKE_rigidbody_remove_constraint(), BKE_rigidbody_remove_object(), BKE_scene_remove_rigidbody_object(), Object::rigidbody_constraint, and Object::rigidbody_object.
Referenced by BKE_scene_remove_rigidbody_object(), and scene_collections_object_remove().
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 2043 of file scene.cc.
References BKE_scene_object_base_flag_sync_from_base(), BKE_scene_set_background(), 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_background(), BKE_scene_set_name(), Freestyle::BlenderStrokeRenderer::BlenderStrokeRenderer(), ED_scene_change_update(), and setup_app_data().
Called from creator_args.cc.
Definition at line 2065 of file scene.cc.
References BKE_libblock_find_name(), BKE_main_blendfile_path(), BKE_scene_set_background(), BKE_scene_set_name(), ID_SCE, and printf.
Referenced by arg_handle_scene_set(), and BKE_scene_set_name().
| TransformOrientation * BKE_scene_transform_orientation_find | ( | const Scene * | scene, |
| const int | index ) |
Definition at line 3536 of file scene.cc.
References BKE_scene_transform_orientation_find(), BLI_findlink(), and Scene::transform_spaces.
Referenced by blender::ed::transform::BIF_removeTransformOrientationIndex(), BKE_scene_transform_orientation_find(), blender::ed::transform::calc_orientation_from_type_ex(), and blender::ed::transform::transform_orientations_spacename_get().
| int BKE_scene_transform_orientation_get_index | ( | const Scene * | scene, |
| const TransformOrientation * | orientation ) |
Definition at line 3541 of file scene.cc.
References BKE_scene_transform_orientation_get_index(), BLI_findindex(), and Scene::transform_spaces.
Referenced by blender::ed::transform::BIF_selectTransformOrientation(), BKE_scene_transform_orientation_get_index(), and BKE_scene_transform_orientation_remove().
| void BKE_scene_transform_orientation_remove | ( | Scene * | scene, |
| TransformOrientation * | orientation ) |
Definition at line 3516 of file scene.cc.
References ARRAY_SIZE, BKE_scene_transform_orientation_get_index(), BKE_scene_transform_orientation_remove(), BLI_assert, BLI_freelinkN(), i, TransformOrientationSlot::index_custom, Scene::orientation_slots, Scene::transform_spaces, TransformOrientationSlot::type, V3D_ORIENT_CUSTOM, and V3D_ORIENT_GLOBAL.
Referenced by blender::ed::transform::BIF_removeTransformOrientation(), and BKE_scene_transform_orientation_remove().
Definition at line 3450 of file scene.cc.
References BKE_scene_undo_depsgraphs_extract(), BLI_ghash_insert(), BLI_ghash_lookup_p(), BLI_ghash_new(), BLI_ghashutil_strcmp(), BLI_ghashutil_strhash_p(), LISTBASE_FOREACH, scene_undo_depsgraph_gen_key(), Main::scenes, and DepsgraphKey::view_layer.
Referenced by BKE_scene_undo_depsgraphs_extract(), and memfile_undosys_step_decode().
Definition at line 3479 of file scene.cc.
References BKE_scene_undo_depsgraphs_restore(), BLI_assert, BLI_ghash_free(), BLI_ghash_lookup_p(), DEG_graph_replace_owners(), DEG_graph_tag_relations_update(), depsgraph_key_value_free(), FILE_MAX, LISTBASE_FOREACH, MAX_ID_NAME, MAX_NAME, MEM_freeN(), scene_get_depsgraph_p(), scene_undo_depsgraph_gen_key(), and Main::scenes.
Referenced by BKE_scene_undo_depsgraphs_restore(), and memfile_undosys_step_decode().
| void BKE_scene_update_sound | ( | Depsgraph * | depsgraph, |
| Main * | bmain ) |
Definition at line 2508 of file scene.cc.
References Scene::audio, AUDIO_MUTE, BKE_scene_update_sound(), BKE_sound_ensure_scene(), BKE_sound_mute_scene(), BKE_sound_seek_scene(), BKE_sound_set_scene_volume(), BKE_sound_update_fps(), BKE_sound_update_scene(), BKE_sound_update_scene_listener(), DAG_EVAL_VIEWPORT, DEG_get_evaluated_scene(), DEG_get_mode(), AudioData::flag, Scene::id, ID_RECALC_AUDIO_FPS, ID_RECALC_AUDIO_LISTENER, ID_RECALC_AUDIO_MUTE, ID_RECALC_AUDIO_VOLUME, ID_RECALC_FRAME_CHANGE, ID::recalc, and AudioData::volume.
Referenced by BKE_scene_graph_update_for_newframe_ex(), BKE_scene_update_sound(), render_update_depsgraph(), and scene_graph_update_tagged().
| void BKE_scene_update_tag_audio_volume | ( | Depsgraph * | , |
| Scene * | scene ) |
Definition at line 2533 of file scene.cc.
References BKE_scene_update_tag_audio_volume(), BLI_assert, DEG_is_evaluated(), Scene::id, ID_RECALC_AUDIO_VOLUME, and ID::recalc.
Referenced by BKE_scene_update_tag_audio_volume().
| bool BKE_scene_use_shading_nodes_custom | ( | Scene * | scene | ) |
Definition at line 2809 of file scene.cc.
References BKE_scene_use_shading_nodes_custom(), RenderData::engine, RenderEngineType::flag, Scene::r, RE_engines_find(), and RE_USE_SHADING_NODES_CUSTOM.
Referenced by BKE_scene_use_shading_nodes_custom(), and shader_tree_poll().
| bool BKE_scene_use_spherical_stereo | ( | Scene * | scene | ) |
Definition at line 2815 of file scene.cc.
References BKE_scene_use_spherical_stereo(), RenderData::engine, RenderEngineType::flag, Scene::r, RE_engines_find(), and RE_USE_SPHERICAL_STEREO.
Referenced by BKE_scene_use_spherical_stereo().
| bool BKE_scene_uses_blender_eevee | ( | const Scene * | scene | ) |
Definition at line 2821 of file scene.cc.
References BKE_scene_uses_blender_eevee(), RenderData::engine, Scene::r, RE_engine_id_BLENDER_EEVEE, RE_engine_id_BLENDER_EEVEE_NEXT, and STREQ.
Referenced by BKE_scene_uses_blender_eevee(), BKE_scene_uses_shader_previews(), ED_view3d_draw_offscreen_imbuf_simple(), blender::nodes::node_shader_tex_sky_cc::node_shader_buts_tex_sky(), and uiTemplatePreview().
| bool BKE_scene_uses_blender_workbench | ( | const Scene * | scene | ) |
Definition at line 2827 of file scene.cc.
References BKE_scene_uses_blender_workbench(), RenderData::engine, Scene::r, RE_engine_id_BLENDER_WORKBENCH, and STREQ.
Referenced by blender::draw::overlay::Paints::begin_sync(), BKE_scene_uses_blender_workbench(), blender::draw::color_management::drw_color_management_type_for_v3d(), ED_view3d_draw_offscreen_imbuf_simple(), ED_view3d_has_workbench_in_texture_color(), blender::draw::overlay::Instance::init(), and blender::ed::transform::snap_use_backface_culling().
| bool BKE_scene_uses_cycles | ( | const Scene * | scene | ) |
Definition at line 2832 of file scene.cc.
References BKE_scene_uses_cycles(), RenderData::engine, Scene::r, RE_engine_id_CYCLES, and STREQ.
Referenced by BKE_scene_uses_cycles(), BKE_scene_uses_cycles_experimental_features(), BKE_scene_uses_shader_previews(), panel_draw(), RE_engine_supports_alembic_procedural(), and uiTemplateCacheFileProcedural().
| bool BKE_scene_uses_cycles_experimental_features | ( | Scene * | scene | ) |
Return whether the Cycles experimental feature is enabled. It is invalid to call without first ensuring that Cycles is the active render engine (e.g. with BKE_scene_uses_cycles).
Definition at line 2848 of file scene.cc.
References BKE_scene_uses_cycles(), BKE_scene_uses_cycles_experimental_features(), BLI_assert, CYCLES_FEATURES_EXPERIMENTAL, Scene::id, RNA_enum_get(), RNA_id_pointer_create(), RNA_pointer_get(), and RNA_pointer_is_null().
Referenced by BKE_scene_uses_cycles_experimental_features(), RE_engine_supports_alembic_procedural(), and uiTemplateCacheFileProcedural().
| bool BKE_scene_uses_shader_previews | ( | const Scene * | scene | ) |
Definition at line 2837 of file scene.cc.
References BKE_scene_uses_blender_eevee(), BKE_scene_uses_cycles(), and BKE_scene_uses_shader_previews().
Referenced by BKE_scene_uses_shader_previews(), and blender::ed::space_node::draw_nodetree().
Checks for cycle, returns true if it's all OK.
Definition at line 2345 of file scene.cc.
References BKE_scene_validate_setscene(), BLI_listbase_count(), Main::scenes, and Scene::set.
Referenced by BKE_scene_set_background(), and BKE_scene_validate_setscene().
| 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.
Definition at line 2702 of file scene.cc.
References BKE_scene_ensure_depsgraph(), BKE_scene_graph_update_tagged(), BKE_scene_view_layer_graph_evaluated_ensure(), and DEG_make_active().
Referenced by BKE_scene_view_layer_graph_evaluated_ensure().
| CurveMapping * BKE_sculpt_default_cavity_curve | ( | ) |
Definition at line 125 of file scene.cc.
References BKE_curvemap_reset(), BKE_curvemapping_add(), BKE_curvemapping_changed(), BKE_curvemapping_init(), BKE_sculpt_default_cavity_curve(), CurveMapping::clipr, CurveMapping::cm, CUMA_EXTEND_EXTRAPOLATE, CURVE_PRESET_LINE, CURVEMAP_SLOPE_POSITIVE, CurveMapping::flag, and CurveMapping::preset.
Referenced by BKE_sculpt_cavity_curves_ensure(), BKE_sculpt_default_cavity_curve(), and brush_blend_read_data().
| ToolSettings * BKE_toolsettings_copy | ( | ToolSettings * | toolsettings, |
| int | flag ) |
| flag | copying options (see BKE_lib_id.hh's LIB_ID_COPY_... flags for more). |
Definition at line 1656 of file scene.cc.
References Sculpt::automasking_cavity_curve, Sculpt::automasking_cavity_curve_op, BKE_curvemapping_copy(), BKE_curvemapping_init(), BKE_curveprofile_copy(), BKE_paint_copy(), BKE_toolsettings_copy(), GP_Sculpt_Settings::cur_falloff, GP_Sculpt_Settings::cur_primitive, 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, ToolSettings::gp_interpolate, ToolSettings::gp_paint, ToolSettings::gp_sculpt, ToolSettings::gp_sculptpaint, ToolSettings::gp_vertexpaint, ToolSettings::gp_weightpaint, ToolSettings::imapaint, MEM_dupallocN(), ParticleEditSettings::object, CurvesSculpt::paint, GpPaint::paint, GpSculptPaint::paint, GpVertexPaint::paint, GpWeightPaint::paint, ImagePaintSettings::paint, Sculpt::paint, VPaint::paint, ParticleEditSettings::paintcursor, ToolSettings::particle, ParticleEditSettings::scene, ToolSettings::sculpt, ToolSettings::sequencer_tool_settings, UvSculpt::strength_curve, blender::seq::tool_settings_copy(), ToolSettings::unified_paint_settings, ToolSettings::uvsculpt, ToolSettings::vpaint, and ToolSettings::wpaint.
Referenced by BKE_scene_duplicate(), BKE_toolsettings_copy(), and scene_copy_data().
| void BKE_toolsettings_free | ( | ToolSettings * | toolsettings | ) |
Definition at line 1736 of file scene.cc.
References Sculpt::automasking_cavity_curve, Sculpt::automasking_cavity_curve_op, BKE_curvemapping_free(), BKE_curveprofile_free(), BKE_paint_free(), BKE_toolsettings_free(), GP_Sculpt_Settings::cur_falloff, GP_Sculpt_Settings::cur_primitive, 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, ToolSettings::gp_interpolate, ToolSettings::gp_paint, ToolSettings::gp_sculpt, ToolSettings::gp_sculptpaint, ToolSettings::gp_vertexpaint, ToolSettings::gp_weightpaint, ToolSettings::imapaint, MEM_freeN(), CurvesSculpt::paint, GpPaint::paint, GpSculptPaint::paint, GpVertexPaint::paint, GpWeightPaint::paint, ImagePaintSettings::paint, Sculpt::paint, VPaint::paint, ToolSettings::sculpt, ToolSettings::sequencer_tool_settings, UvSculpt::strength_curve, blender::seq::tool_settings_free(), ToolSettings::unified_paint_settings, ToolSettings::uvsculpt, ToolSettings::vpaint, and ToolSettings::wpaint.
Referenced by BKE_scene_duplicate(), BKE_toolsettings_free(), and scene_free_data().
|
static |
Definition at line 2450 of file scene.cc.
References bScreen::areabase, BKE_workspace_active_screen_get(), check_rendered_viewport_visible(), RenderEngineType::draw_engine, RenderData::engine, ListBase::first, LISTBASE_FOREACH, OB_RENDER, Scene::r, RE_engines_find(), RenderEngineType::render, View3D::shading, SPACE_VIEW3D, View3DShading::type, and Main::wm.
Referenced by check_rendered_viewport_visible(), and prepare_mesh_for_viewport_render().
|
static |
Definition at line 3289 of file scene.cc.
References depsgraph_key_compare(), and DepsgraphKey::view_layer.
Referenced by BKE_scene_allocate_depsgraph_hash(), and depsgraph_key_compare().
|
static |
Definition at line 3297 of file scene.cc.
References depsgraph_key_free(), and MEM_freeN().
Referenced by BKE_scene_free_depsgraph_hash(), BKE_scene_free_view_layer_depsgraph(), and depsgraph_key_free().
|
static |
Definition at line 3281 of file scene.cc.
References BLI_ghashutil_ptrhash(), depsgraph_key_hash(), hash, and DepsgraphKey::view_layer.
Referenced by BKE_scene_allocate_depsgraph_hash(), and depsgraph_key_hash().
|
static |
Definition at line 3303 of file scene.cc.
References DEG_graph_free(), and depsgraph_key_value_free().
Referenced by BKE_scene_free_depsgraph_hash(), BKE_scene_free_view_layer_depsgraph(), BKE_scene_undo_depsgraphs_restore(), and depsgraph_key_value_free().
|
static |
Definition at line 1185 of file scene.cc.
References BKE_paint_blend_read_data(), BLO_read_struct, and direct_link_paint_helper().
Referenced by direct_link_paint_helper(), and scene_blend_read_data().
| int get_render_child_particle_number | ( | const RenderData * | r, |
| int | child_num, | ||
| bool | for_render ) |
Definition at line 2763 of file scene.cc.
References get_render_child_particle_number(), RenderData::mode, R_SIMPLIFY, RenderData::simplify_particles, and RenderData::simplify_particles_render.
Referenced by get_render_child_particle_number(), and psys_get_child_number().
| int get_render_subsurf_level | ( | const RenderData * | r, |
| int | lvl, | ||
| bool | for_render ) |
Definition at line 2750 of file scene.cc.
References get_render_subsurf_level(), min_ii(), RenderData::mode, R_SIMPLIFY, RenderData::simplify_subsurf, and RenderData::simplify_subsurf_render.
Referenced by get_render_subsurf_level(), is_disabled(), multires_get_level(), subdiv_levels_for_modifier_get(), and subsurf_make_derived_from_derived().
|
constexpr |
Definition at line 1586 of file scene.cc.
References IDTypeInfo::asset_type_info, IDTypeInfo::blend_read_after_liblink, IDTypeInfo::blend_read_data, IDTypeInfo::blend_read_undo_preserve, IDTypeInfo::blend_write, BLT_I18NCONTEXT_ID_SCENE, IDTypeInfo::copy_data, IDTypeInfo::dependencies_id_types, FILTER_ID_BR, FILTER_ID_GD_LEGACY, FILTER_ID_GR, FILTER_ID_IM, FILTER_ID_LS, FILTER_ID_MA, FILTER_ID_MC, FILTER_ID_MSK, FILTER_ID_NT, FILTER_ID_OB, FILTER_ID_PAL, FILTER_ID_SCE, FILTER_ID_SO, FILTER_ID_TXT, FILTER_ID_WO, IDTypeInfo::flags, IDTypeInfo::foreach_cache, IDTypeInfo::foreach_id, IDTypeInfo::foreach_path, IDTypeInfo::free_data, get_type_info(), IDTypeInfo::id_code, IDTypeInfo::id_filter, ID_SCE, IDTYPE_FLAGS_NEVER_UNUSED, INDEX_ID_SCE, IDTypeInfo::init_data, IDTypeInfo::lib_override_apply_post, IDTypeInfo::main_listbase_index, IDTypeInfo::make_local, IDTypeInfo::name, IDTypeInfo::name_plural, IDTypeInfo::owner_pointer_get, scene_blend_read_after_liblink(), scene_blend_read_data(), scene_blend_write(), scene_copy_data(), scene_foreach_cache(), scene_foreach_id(), scene_foreach_path(), scene_free_data(), scene_init_data(), scene_lib_override_apply_post(), scene_undo_preserve(), IDTypeInfo::struct_size, and IDTypeInfo::translation_context.
|
static |
Definition at line 1195 of file scene.cc.
References BLI_freelinkN(), BLO_read_data_reports(), BLO_read_struct_list, BlendFileReadReport::count, blender::seq::is_valid_strip_channel(), link_recurs_seq(), and LISTBASE_FOREACH_MUTABLE.
Referenced by link_recurs_seq(), and scene_blend_read_data().
|
static |
Definition at line 2477 of file scene.cc.
References BKE_view_layer_edit_object_get(), BKE_view_layer_synced_ensure(), bm, BM_mesh_bm_to_me(), BMeshToMeshParams::calc_object_remap, check_rendered_viewport_visible(), Object::data, DEG_id_tag_update(), Mesh::id, Object::id, ID_RECALC_ALL, OB_MESH, prepare_mesh_for_viewport_render(), ID::recalc, Mesh::runtime, Object::type, and BMeshToMeshParams::update_shapekey_indices.
Referenced by prepare_mesh_for_viewport_render(), and scene_graph_update_tagged().
|
static |
Definition at line 1630 of file scene.cc.
References blender::animrig::Channelbag::fcurve_remove(), blender::animrig::Channelbag::fcurves(), blender::animrig::get_action_slot_pair(), Scene::id, and remove_sequencer_fcurves().
Referenced by BKE_scene_duplicate(), and remove_sequencer_fcurves().
|
static |
Definition at line 1522 of file scene.cc.
References BKE_view_layer_blend_read_after_liblink(), BLI_remlink(), BLO_read_lib_reports(), BLO_reportf_wrap(), Scene::flag, Scene::id, ID_IS_LINKED, LISTBASE_FOREACH, LISTBASE_FOREACH_MUTABLE, MEM_freeN(), ID::name, RPT_, RPT_WARNING, SCE_NLA_EDIT_ON, SCE_READFILE_LIBLINK_NEED_SETSCENE_CHECK, scene_blend_read_after_liblink(), Scene::set, and Scene::view_layers.
Referenced by get_type_info(), and scene_blend_read_after_liblink().
|
static |
Definition at line 1211 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_fileversion_get(), BLO_read_get_new_data_address_no_us(), BLO_read_glob_list(), BLO_read_struct, BLO_read_struct_list, BLO_read_struct_member_offset(), PaintModeSettings::canvas_image, Editing::channels, GP_Sculpt_Settings::cur_falloff, GP_Sculpt_Settings::cur_primitive, 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, Editing::displayed_channels, Scene::ed, RigidBodyWorld::effector_weights, ELEM, EditingRuntime::final_image_cache, 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, UnifiedPaintSettings::last_hit, UnifiedPaintSettings::last_location, 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, offsetof, ImagePaintSettings::paint, ToolSettings::paint_mode, GP_Sculpt_Settings::paintcursor, ParticleEditSettings::paintcursor, ToolSettings::particle, RigidBodyWorld_Shared::pointcache, POINTER_OFFSET, Editing::prefetch_job, Scene::preview, RigidBodyWorld_Shared::ptcaches, Scene::r, R_NO_CAMERA_SWITCH, Scene::rigidbody_world, Editing::runtime, Scene::runtime, ParticleEditSettings::scene, scene_blend_read_data(), ToolSettings::sculpt, Editing::seqbase, Editing::seqbasep, ToolSettings::sequencer_tool_settings, SceneDisplay::shading, RigidBodyWorld::shared, UnifiedPaintSettings::size, UvSculpt::size, EditingRuntime::source_image_cache, PointCache::startframe, UvSculpt::strength_curve, EditingRuntime::strip_lookup, EditingRuntime::thumbnail_cache, Scene::toolsettings, Scene::transform_spaces, ToolSettings::unified_paint_settings, UnifiedPaintSettings::unprojected_radius, ToolSettings::uvsculpt, Scene::view_layers, Scene::view_settings, RenderData::views, ToolSettings::vpaint, ToolSettings::wpaint, and zero_v3().
Referenced by get_type_info(), and scene_blend_read_data().
|
static |
Definition at line 1016 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, GP_Sculpt_Settings::cur_falloff, GP_Sculpt_Settings::cur_primitive, Scene::cursor, 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::display, Scene::ed, RigidBodyWorld::effector_weights, 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, BakeData::im_format, RenderData::im_format, ToolSettings::imapaint, Scene::keyingsets, Scene::layer_properties, LISTBASE_FOREACH, Scene::markers, Scene::master_collection, RenderData::mblur_shutter_curve, Editing::metastack, blender::bke::node_tree_blend_write(), Scene::nodetree, 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, Scene::rigidbody_world, scene_blend_write(), ToolSettings::sculpt, Editing::seqbase, ToolSettings::sequencer_tool_settings, SceneDisplay::shading, RigidBodyWorld::shared, UvSculpt::strength_curve, Scene::toolsettings, Scene::transform_spaces, ToolSettings::unified_paint_settings, ToolSettings::uvsculpt, Scene::view_layers, Scene::view_settings, RenderData::views, ToolSettings::vpaint, and ToolSettings::wpaint.
Referenced by get_type_info(), and scene_blend_write().
|
static |
Definition at line 257 of file scene.cc.
References RenderData::bake, BKE_color_managed_colorspace_settings_copy(), BKE_color_managed_display_settings_copy(), BKE_color_managed_view_settings_copy(), BKE_copy_time_markers(), BKE_curvemapping_copy_data(), BKE_id_copy_in_lib(), BKE_image_format_copy(), BKE_keyingsets_copy(), BKE_libblock_relink_ex(), BKE_previewimg_id_copy(), BKE_rigidbody_world_copy(), BKE_scene_copy_data_eevee(), BKE_sound_reset_scene_runtime(), BKE_toolsettings_copy(), BKE_view_layer_copy_data(), BKE_view_layer_synced_ensure(), BLI_duplicatelist(), Editing::cache_flag, Editing::channels, Scene::depsgraph_hash, Scene::display, Scene::display_settings, Editing::displayed_channels, Scene::ed, ListBase::first, Scene::fps_info, bNodeTree::id, Collection::id, Scene::id, ID_REMAP_SKIP_NEVER_NULL_USAGE, ID_REMAP_SKIP_USER_CLEAR, IDP_CopyProperty(), BakeData::im_format, RenderData::im_format, Scene::keyingsets, LIB_ID_COPY_NO_PREVIEW, LIB_ID_CREATE_NO_ALLOCATE, LIB_ID_CREATE_NO_USER_REFCOUNT, LISTBASE_FOREACH, Scene::markers, Scene::master_collection, RenderData::mblur_shutter_curve, MEM_callocN(), ViewLayer::next, Scene::nodetree, Scene::preview, View3DShading::prop, Editing::proxy_dir, Editing::proxy_storage, Scene::r, Scene::rigidbody_world, Scene::runtime, scene_copy_data(), Editing::seqbase, blender::seq::seqbase_duplicate_recursive(), Editing::seqbasep, Scene::sequencer_colorspace_settings, SceneDisplay::shading, Editing::show_missing_media_flag, STRIP_DUPE_ALL, STRNCPY(), Scene::toolsettings, Scene::transform_spaces, Scene::view_layers, Scene::view_settings, and RenderData::views.
Referenced by get_type_info(), and scene_copy_data().
|
static |
Definition at line 3382 of file scene.cc.
References BLI_assert, DAG_EVAL_VIEWPORT, DEG_debug_name_set(), DEG_enable_editors_update(), DEG_graph_new(), Scene::id, ID::name, ViewLayer::name, scene_ensure_depsgraph_p(), scene_get_depsgraph_p(), and SNPRINTF.
Referenced by BKE_scene_ensure_depsgraph(), and scene_ensure_depsgraph_p().
|
static |
Definition at line 1002 of file scene.cc.
References Scene::ed, IDCacheKey::id_session_uid, IDCacheKey::identifier, offsetof, Editing::runtime, scene_foreach_cache(), and EditingRuntime::thumbnail_cache.
Referenced by get_type_info(), and scene_foreach_cache().
|
static |
Definition at line 848 of file scene.cc.
References RenderData::bake, BKE_keyingsets_foreach_id(), BKE_LIB_FOREACHID_PROCESS_FUNCTION_CALL, BKE_LIB_FOREACHID_PROCESS_IDSUPER, BKE_lib_query_foreachid_process_flags_get(), BKE_library_foreach_ID_embedded(), BKE_rigidbody_world_id_loop(), BKE_view_layer_object_bases_get(), BKE_view_layer_synced_ensure(), BakeData::cage_object, Scene::camera, Scene::clip, data, Scene::ed, blender::seq::for_each_callback(), Scene::gpd, IDP_foreach_property(), IDP_TYPE_FILTER_ID, IDWALK_CB_DIRECT_WEAK_LINK, IDWALK_CB_NEVER_SELF, IDWALK_CB_NOP, IDWALK_CB_OVERRIDE_LIBRARY_NOT_OVERRIDABLE, IDWALK_CB_USER, IDWALK_DO_DEPRECATED_POINTERS, Scene::keyingsets, LISTBASE_FOREACH, LISTBASE_FOREACH_MUTABLE, Scene::markers, Scene::master_collection, Scene::nodetree, Scene::r, Scene::rigidbody_world, scene_foreach_id(), scene_foreach_layer_collection(), scene_foreach_rigidbodyworldSceneLooper(), scene_foreach_toolsettings(), Editing::seqbase, Scene::set, strip_foreach_member_id_cb(), Scene::toolsettings, Scene::view_layers, and Scene::world.
Referenced by get_type_info(), and scene_foreach_id().
|
static |
Definition at line 779 of file scene.cc.
References BKE_LIB_FOREACHID_PROCESS_IDSUPER, BKE_lib_query_foreachid_process_flags_get(), BLI_assert, data, ID_FLAG_EMBEDDED_DATA, IDWALK_CB_DIRECT_WEAK_LINK, IDWALK_CB_EMBEDDED_NOT_OWNING, IDWALK_CB_NOP, IDWALK_NO_ORIG_POINTERS_ACCESS, LISTBASE_FOREACH, and scene_foreach_layer_collection().
Referenced by scene_foreach_id(), and scene_foreach_layer_collection().
|
static |
Definition at line 569 of file scene.cc.
References BKE_LIB_FOREACHID_UNDO_PRESERVE_PROCESS_IDSUPER_P, BLI_assert, Paint::brush, data, Paint::eraser_brush, IDWALK_CB_NOP, IDWALK_CB_USER, Paint::palette, scene_foreach_paint(), and SCENE_FOREACH_UNDO_RESTORE.
Referenced by scene_foreach_paint(), and scene_foreach_toolsettings().
|
static |
Definition at line 994 of file scene.cc.
References Scene::ed, blender::seq::for_each_callback(), scene_foreach_path(), Editing::seqbase, and strip_foreach_path_callback().
Referenced by get_type_info(), and scene_foreach_path().
|
static |
Definition at line 459 of file scene.cc.
References BKE_LIB_FOREACHID_PROCESS_FUNCTION_CALL, BKE_lib_query_foreachid_process(), data, and scene_foreach_rigidbodyworldSceneLooper().
Referenced by scene_foreach_id(), and scene_foreach_rigidbodyworldSceneLooper().
|
static |
Definition at line 613 of file scene.cc.
References BKE_LIB_FOREACHID_UNDO_PRESERVE_PROCESS_FUNCTION_CALL, BKE_LIB_FOREACHID_UNDO_PRESERVE_PROCESS_IDSUPER_P, BLI_assert, ImagePaintSettings::canvas, ImagePaintSettings::clone, ToolSettings::curves_sculpt, data, ELEM, ToolSettings::gp_paint, ToolSettings::gp_sculpt, ToolSettings::gp_sculptpaint, ToolSettings::gp_vertexpaint, ToolSettings::gp_weightpaint, Sculpt::gravity_object, GP_Sculpt_Settings::guide, IDWALK_CB_NOP, IDWALK_CB_USER, ToolSettings::imapaint, ParticleEditSettings::object, CurvesSculpt::paint, GpPaint::paint, GpSculptPaint::paint, GpVertexPaint::paint, GpWeightPaint::paint, ImagePaintSettings::paint, Sculpt::paint, VPaint::paint, ToolSettings::particle, GP_Sculpt_Guide::reference_object, ParticleEditSettings::scene, scene_foreach_paint(), scene_foreach_toolsettings(), SCENE_FOREACH_UNDO_NO_RESTORE, SCENE_FOREACH_UNDO_RESTORE, ToolSettings::sculpt, ParticleEditSettings::shape_object, ImagePaintSettings::stencil, ToolSettings::vpaint, and ToolSettings::wpaint.
Referenced by scene_foreach_id(), scene_foreach_toolsettings(), and scene_undo_preserve().
|
static |
Definition at line 482 of file scene.cc.
References BLI_assert, BLO_read_get_new_id_address_from_session_uid(), id_us_min(), id_us_plus_no_lib(), IDWALK_CB_USER, ID::orig_id, scene_foreach_toolsettings_id_pointer_process(), SCENE_FOREACH_UNDO_NO_RESTORE, SCENE_FOREACH_UNDO_RESTORE, and ID::session_uid.
Referenced by scene_foreach_toolsettings_id_pointer_process().
|
static |
Definition at line 386 of file scene.cc.
References RenderData::bake, BKE_collection_free_data(), BKE_color_managed_view_settings_free(), BKE_curvemapping_free_data(), BKE_image_format_free(), BKE_keyingsets_free(), BKE_libblock_free_data_py(), BKE_previewimg_free(), BKE_rigidbody_free_world(), BKE_scene_free_depsgraph_hash(), BKE_sound_destroy_scene(), BKE_toolsettings_free(), BKE_view_layer_free_ex(), BLI_assert, BLI_freelistN(), BLI_remlink(), RigidBodyWorld::constraints, Scene::display, blender::seq::editing_free(), Scene::fps_info, RigidBodyWorld::group, Collection::id, IDP_FreeProperty(), BakeData::im_format, RenderData::im_format, Scene::keyingsets, Scene::layer_properties, LISTBASE_FOREACH_MUTABLE, Scene::master_collection, RenderData::mblur_shutter_curve, MEM_freeN(), MEM_SAFE_FREE, blender::bke::node_tree_free_embedded_tree(), Scene::nodetree, Scene::preview, View3DShading::prop, Scene::r, Scene::rigidbody_world, Scene::runtime, scene_free_data(), scene_free_markers(), SceneDisplay::shading, Scene::toolsettings, Scene::transform_spaces, Scene::view_layers, Scene::view_settings, and RenderData::views.
Referenced by get_type_info(), and scene_free_data().
|
static |
Definition at line 375 of file scene.cc.
References IDP_FreePropertyContent_ex(), LISTBASE_FOREACH_MUTABLE, Scene::markers, MEM_freeN(), and scene_free_markers().
Referenced by scene_free_data(), and scene_free_markers().
|
static |
Definition at line 3341 of file scene.cc.
References BKE_scene_ensure_depsgraph_hash(), BKE_scene_has_view_layer(), BLI_assert, BLI_ghash_ensure_p_ex(), BLI_ghash_lookup_p(), Scene::depsgraph_hash, MEM_callocN(), scene_get_depsgraph_p(), and DepsgraphKey::view_layer.
Referenced by BKE_scene_undo_depsgraphs_restore(), scene_ensure_depsgraph_p(), and scene_get_depsgraph_p().
|
static |
Definition at line 2547 of file scene.cc.
References BKE_callback_exec_id(), BKE_callback_exec_id_depsgraph(), BKE_CB_EVT_DEPSGRAPH_UPDATE_POST, BKE_CB_EVT_DEPSGRAPH_UPDATE_PRE, BKE_scene_update_sound(), DEG_editors_update(), DEG_evaluate_on_refresh(), DEG_EVALUATE_SYNC_WRITEBACK_YES, DEG_get_input_scene(), DEG_get_input_view_layer(), DEG_graph_relations_update(), DEG_id_type_any_updated(), DEG_ids_clear_recalc(), DEG_ids_restore_recalc(), DEG_is_fully_evaluated(), Scene::id, prepare_mesh_for_viewport_render(), and scene_graph_update_tagged().
Referenced by BKE_scene_graph_evaluated_ensure(), BKE_scene_graph_update_tagged(), and scene_graph_update_tagged().
|
static |
Definition at line 149 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_render(), 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, UnifiedPaintSettings::curve_rand_hue, UnifiedPaintSettings::curve_rand_saturation, UnifiedPaintSettings::curve_rand_value, CURVEMAP_SLOPE_POS_NEG, CURVEMAP_SLOPE_POSITIVE, 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, PROF_PRESET_LINE, Scene::r, RE_engine_id_BLENDER_EEVEE_NEXT, Scene::runtime, UnitSettings::scale_length, scene_init_data(), Scene::sequencer_colorspace_settings, ToolSettings::sequencer_tool_settings, STEREO_LEFT_NAME, STEREO_LEFT_SUFFIX, STEREO_RIGHT_NAME, STEREO_RIGHT_SUFFIX, ParticleBrushData::strength, STRNCPY(), SceneRenderView::suffix, UnitSettings::system, UnitSettings::temperature_unit, UnitSettings::time_unit, blender::seq::tool_settings_init(), Scene::toolsettings, U, ToolSettings::unified_paint_settings, Scene::unit, USER_UNIT_METRIC, Scene::view_settings, VIEWLAYER_ADD_NEW, and RenderData::views.
Referenced by get_type_info(), and scene_init_data().
Definition at line 1573 of file scene.cc.
References BKE_ptcache_id_from_rigidbody(), LISTBASE_FOREACH, PTCACHE_FLAG_INFO_DIRTY, PTCacheID::ptcaches, Scene::rigidbody_world, and scene_lib_override_apply_post().
Referenced by get_type_info(), and scene_lib_override_apply_post().
|
static |
Definition at line 3433 of file scene.cc.
References BLI_assert, BLI_strncpy_rlen(), FILE_MAX, Library::filepath, Scene::id, ID_IS_LINKED, ID::lib, MAX_ID_NAME, MAX_NAME, MEM_calloc_arrayN(), ID::name, ViewLayer::name, and scene_undo_depsgraph_gen_key().
Referenced by BKE_scene_undo_depsgraphs_extract(), BKE_scene_undo_depsgraphs_restore(), and scene_undo_depsgraph_gen_key().
|
static |
Definition at line 1557 of file scene.cc.
References Scene::cursor, scene_foreach_toolsettings(), scene_undo_preserve(), and Scene::toolsettings.
Referenced by get_type_info(), and scene_undo_preserve().
|
static |
Definition at line 796 of file scene.cc.
References BKE_lib_query_foreachid_process_flags_get(), Strip::clip, data, Strip::effectdata, FOREACHID_PROCESS_ID_NOCHECK, FOREACHID_PROCESS_IDSUPER, IDP_foreach_property(), IDP_TYPE_FILTER_ID, IDWALK_CB_NEVER_SELF, IDWALK_CB_NOP, IDWALK_CB_USER, IDWALK_DO_DEPRECATED_POINTERS, LISTBASE_FOREACH, Strip::mask, Strip::modifiers, Strip::prop, Strip::scene, Strip::scene_camera, Strip::sound, strip_foreach_member_id_cb(), STRIP_TYPE_TEXT, Strip::system_properties, TextVars::text_font, and Strip::type.
Referenced by scene_foreach_id(), and strip_foreach_member_id_cb().
|
static |
Definition at line 954 of file scene.cc.
References BKE_bpath_foreach_path_dirfile_fixed_process(), BKE_bpath_foreach_path_fixed_process(), BKE_BPATH_FOREACH_PATH_SKIP_MULTIFILE, Strip::data, StripData::dirpath, ELEM, StripElem::filename, BPathForeachPathData::flag, i, len(), MEM_allocN_len, strip_foreach_path_callback(), STRIP_HAS_PATH, STRIP_TYPE_IMAGE, STRIP_TYPE_MOVIE, STRIP_TYPE_SOUND_RAM, StripData::stripdata, and Strip::type.
Referenced by scene_foreach_path(), and strip_foreach_path_callback().
| blender::float3x3 View3DCursor::matrix< blender::float3x3 > | ( | ) | const |
Definition at line 3555 of file scene.cc.
References axis_angle_to_mat3(), eulO_to_mat3(), normalize_qt_qt(), blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), quat_to_mat3(), ROT_MODE_AXISANGLE, and this.
Referenced by View3DCursor::matrix< blender::float4x4 >().
| blender::float4x4 View3DCursor::matrix< blender::float4x4 > | ( | ) | const |
Definition at line 3655 of file scene.cc.
References blender::MatBase< T, NumCol, NumRow, Alignment >::location(), and View3DCursor::matrix< blender::float3x3 >().
| IDTypeInfo IDType_ID_SCE = get_type_info() |
Definition at line 1623 of file scene.cc.
Referenced by blender::bke::tests::TEST(), and blender::bke::tests::TEST().
| const char* RE_engine_id_BLENDER_EEVEE = "BLENDER_EEVEE" |
Definition at line 1625 of file scene.cc.
Referenced by BKE_scene_uses_blender_eevee(), blo_do_versions_280(), blo_do_versions_410(), blo_do_versions_420(), do_versions_after_linking_280(), do_versions_after_linking_420(), and blender::ed::asset::screenshot_preview_exec().
| const char* RE_engine_id_BLENDER_EEVEE_NEXT = "BLENDER_EEVEE_NEXT" |
Definition at line 1626 of file scene.cc.
Referenced by BKE_scene_uses_blender_eevee(), blo_do_versions_410(), blo_update_defaults_scene(), do_versions_after_linking_420(), ED_view3d_engine_type(), ED_view3d_has_depth_buffer_updated(), blender::draw::overlay::Instance::init(), preview_prepare_scene(), render_engine_supports_ray_visibility(), scene_init_data(), and blender::ed::asset::screenshot_preview_exec().
| const char* RE_engine_id_BLENDER_WORKBENCH = "BLENDER_WORKBENCH" |
Definition at line 1627 of file scene.cc.
Referenced by BKE_scene_uses_blender_workbench(), blo_do_versions_280(), blo_do_versions_420(), ED_view3d_has_depth_buffer_updated(), and blender::ed::asset::screenshot_preview_exec().
| const char* RE_engine_id_CYCLES = "CYCLES" |
Definition at line 1628 of file scene.cc.
Referenced by BKE_scene_uses_cycles(), blo_do_versions_280(), blo_do_versions_420(), do_versions_after_linking_280(), and shader_tree_poll().