10#define DNA_DEPRECATED_ALLOW
126using bke::CompositorRuntime;
127using bke::SceneRuntime;
128using bke::SequencerRuntime;
177 Scene *scene = id_cast<Scene *>(
id);
178 const char *colorspace_name;
190 &mblur_shutter_curve->
clipr,
211 &gp_falloff_curve->
clipr,
219 &gp_primitive_curve->
clipr,
249 srv = scene->
r.
views.first();
253 srv = scene->
r.
views.last();
282 scene->
runtime = MEM_new<SceneRuntime>(__func__);
286 std::optional<Library *> owner_library,
291 Scene *scene_dst = id_cast<Scene *>(id_dst);
292 const Scene *scene_src = id_cast<const Scene *>(id_src);
298 scene_dst->
ed =
nullptr;
309 flag_embedded_id_data);
322 view_layer_src = view_layer_src->next, view_layer_dst = view_layer_dst->next)
359 scene_dst->
ed = MEM_new<Editing>(__func__);
387 scene_dst->
runtime = MEM_new<SceneRuntime>(__func__);
392 Scene *scene = id_cast<Scene *>(
id);
393 const bool do_id_user =
false;
400 "Pointer should not be valid after blend file reading.");
413 scene->
r.
views.free_no_destruct();
420 MEM_SAFE_DELETE_VOID(scene->
fps_info);
493 ID *id_old = *id_old_p;
500 if (id_old_new == id_old) {
503 if (id_old_new !=
nullptr) {
505 *id_old_p = id_old_new;
521 ID *id_new =
id !=
nullptr ?
531 std::swap(*id_p, *id_old_p);
536 std::swap(*id_p, *id_old_p);
546#define BKE_LIB_FOREACHID_UNDO_PRESERVE_PROCESS_IDSUPER_P( \
547 _data, _id_p, _do_undo_restore, _action, _reader, _id_old_p, _cb_flag) \
549 if (_do_undo_restore) { \
550 scene_foreach_toolsettings_id_pointer_process( \
551 (ID **)(_id_p), _action, _reader, (ID **)(_id_old_p), _cb_flag); \
554 BLI_assert((_data) != nullptr); \
555 BKE_LIB_FOREACHID_PROCESS_IDSUPER_P(_data, _id_p, _cb_flag); \
560#define BKE_LIB_FOREACHID_UNDO_PRESERVE_PROCESS_FUNCTION_CALL( \
561 _data, _do_undo_restore, _func_call) \
563 if (_do_undo_restore) { \
567 BLI_assert((_data) != nullptr); \
568 BKE_LIB_FOREACHID_PROCESS_FUNCTION_CALL(_data, _func_call); \
575 const bool do_undo_restore,
586 Brush *brush_tmp =
nullptr;
596 Palette *palette_tmp =
nullptr;
609 const bool do_undo_restore,
618 BLI_assert(do_undo_restore || (toolsett == toolsett_old));
689 if (toolsett_old->
vpaint) {
697 if (toolsett_old->
wpaint) {
705 if (toolsett_old->
sculpt) {
731 if (toolsett_old != toolsett) {
786#undef BKE_LIB_FOREACHID_UNDO_PRESERVE_PROCESS_IDSUPER
787#undef BKE_LIB_FOREACHID_UNDO_PRESERVE_PROCESS_FUNCTION_CALL
790 ListBaseT<LayerCollection> *lb,
791 const bool is_master)
811#define FOREACHID_PROCESS_ID_NOCHECK(_data, _id_super, _cb_flag) \
813 BKE_lib_query_foreachid_process((_data), reinterpret_cast<ID **>(&(_id_super)), (_cb_flag)); \
814 if (BKE_lib_query_foreachid_iter_stop(_data)) { \
820#define FOREACHID_PROCESS_IDSUPER(_data, _id_super, _cb_flag) \
822 CHECK_TYPE(&((_id_super)->id), ID *); \
823 FOREACHID_PROCESS_ID_NOCHECK(_data, _id_super, _cb_flag); \
833 BKE_lib_query_idpropertiesForeachIDLink_callback(prop, data);
836 BKE_lib_query_idpropertiesForeachIDLink_callback(prop, data);
842 BKE_lib_query_idpropertiesForeachIDLink_callback(prop, data);
854 BKE_lib_query_idpropertiesForeachIDLink_callback(prop, data);
863#undef FOREACHID_PROCESS_IDSUPER
864#undef FOREACHID_PROCESS_ID_NOCHECK
909 BKE_lib_query_idpropertiesForeachIDLink_callback(prop, data);
915 BKE_lib_query_idpropertiesForeachIDLink_callback(prop, data);
933 "foreach_id should never recurse in case it cannot ensure that all "
934 "view-layers are in synced with their collections");
960 BKE_lib_query_idpropertiesForeachIDLink_callback(prop, data);
978 for (
Base &base_legacy : scene->
base.items_mutable()) {
1003 strip->
data->dirpath,
1004 sizeof(strip->
data->dirpath),
1018 for (i = 0; i <
len; i++, se++) {
1020 strip->
data->dirpath,
1021 sizeof(strip->
data->dirpath),
1029 bpath_data, strip->
data->dirpath,
sizeof(strip->
data->dirpath));
1037 Scene *scene = id_cast<Scene *>(
id);
1038 if (scene->
ed !=
nullptr) {
1045 Scene *scene = id_cast<Scene *>(
id);
1048 fn.single(paint.unified_paint_settings.color);
1049 fn.single(paint.unified_paint_settings.secondary_color);
1055 Scene *scene = id_cast<Scene *>(
id);
1058 BKE_paint_foreach_asset_weak_reference(paint, fn);
1066 Scene *scene = id_cast<Scene *>(
id);
1067 if (scene->
ed !=
nullptr) {
1078 const bNodeTree &compositing_node_group,
1082 compositing_node_group,
nullptr,
false);
1093 bNode *composite_node =
nullptr;
1100 "CompositorNodeComposite",
1103 "Final render output",
1110 *temp_nodetree_copy, *composite_node,
SOCK_IN,
"NodeSocketColor",
"Image");
1112 composite_node->
location[0] =
node.location[0] - 20.0f;
1114 group_output_first_input =
node.inputs.first();
1120 for (
bNodeLink &link : temp_nodetree_copy->
links.items_reversed_mutable()) {
1121 if (link.tosock && link.tosock == group_output_first_input) {
1122 ngroup_input_link = &link;
1126 if (ngroup_input_link) {
1143 MEM_delete(temp_nodetree_copy);
1144 temp_nodetree_copy =
nullptr;
1152 Scene *sce = id_cast<Scene *>(
id);
1153 const bool is_write_undo = writer->
is_undo();
1155 if (is_write_undo) {
1162 if (!is_write_undo) {
1359 for (
Strip &strip : lb->items_mutable()) {
1365 else if (strip.seqbase.first()) {
1373 Scene *sce = id_cast<Scene *>(
id);
1384 sce->
runtime = MEM_new<SceneRuntime>(__func__);
1490 ed->runtime = MEM_new<seq::EditingRuntime>(__func__);
1534 if (rbw->
shared ==
nullptr) {
1591 for (
Base &base_legacy : sce->
base.items_mutable()) {
1592 if (base_legacy.object ==
nullptr) {
1595 RPT_(
"LIB: object lost from scene: '%s'"),
1598 if (&base_legacy == sce->
basact) {
1601 MEM_delete(&base_legacy);
1609#ifdef USE_SETSCENE_CHECK
1610 if (sce->
set !=
nullptr) {
1624 Scene *scene_new = id_cast<Scene *>(id_new);
1625 Scene *scene_old = id_cast<Scene *>(id_old);
1640 Scene *scene = id_cast<Scene *>(id_dst);
1652 .id_code = Scene::id_type,
1661 .name_plural =
N_(
"scenes"),
1664 .asset_type_info =
nullptr,
1671 .make_local =
nullptr,
1677 .owner_pointer_get =
nullptr,
1694double Scene::frames_per_second()
const
1696 return double(this->r.frs_sec) / double(this->r.frs_sec_base);
1699int Scene::playback_start()
const
1702 return this->r.psfra;
1704 return this->r.sfra;
1707int Scene::playback_end()
const
1710 return this->r.pefra;
1712 return this->r.efra;
1724 std::optional<std::pair<animrig::Action *, animrig::Slot *>> action_and_slot =
1726 if (!action_and_slot) {
1731 action_and_slot->second->handle);
1739 for (
FCurve *fcurve : fcurves) {
1740 if (strstr(fcurve->rna_path().c_str(),
"sequence_editor.strips_all")) {
1748 if (toolsettings ==
nullptr) {
1752 if (toolsettings->
vpaint) {
1756 if (toolsettings->
wpaint) {
1760 if (toolsettings->
sculpt) {
1830 if (toolsettings ==
nullptr) {
1833 if (toolsettings->
vpaint) {
1835 MEM_delete(toolsettings->
vpaint);
1837 if (toolsettings->
wpaint) {
1839 MEM_delete(toolsettings->
wpaint);
1841 if (toolsettings->
sculpt) {
1850 MEM_delete(toolsettings->
sculpt);
1857 MEM_delete(toolsettings->
gp_paint);
1908 MEM_delete(toolsettings);
1921 uint duplicate_options)
1928 ListBaseT<SceneRenderView> rv;
1969 sce_copy->
gpd =
nullptr;
1988 if (!is_subprocess) {
2000 if (is_subprocess) {
2001 if (sce->
id.
newid !=
nullptr) {
2002 return id_cast<Scene *>(sce->
id.
newid);
2004 sce_copy = id_cast<Scene *>(
2009 sce_copy = id_cast<Scene *>(
BKE_id_copy(bmain, id_cast<ID *>(sce)));
2027 bmain,
reinterpret_cast<ID *
>(effect.
node_group), duplicate_flags, copy_flags);
2035 bmain, id_cast<ID *>(lineset.
linestyle), duplicate_flags, copy_flags);
2082 if (!
object->light_linking) {
2085 if (
object->light_linking->receiver_collection) {
2089 object->light_linking->receiver_collection,
2093 if (
object->light_linking->blocker_collection) {
2097 object->light_linking->blocker_collection,
2113 if (!is_subprocess) {
2163 if (&other_scene != scene) {
2179 for (
Scene *scene_iter =
static_cast<Scene *
>(scene.
id.
prev); scene_iter !=
nullptr;
2180 scene_iter =
static_cast<Scene *
>(scene_iter->id.prev))
2182 if (scene_validate_cb && !scene_validate_cb(*scene_iter)) {
2188 for (
Scene *scene_iter =
static_cast<Scene *
>(scene.
id.
next); scene_iter !=
nullptr;
2189 scene_iter =
static_cast<Scene *
>(scene_iter->id.next))
2191 if (scene_validate_cb && !scene_validate_cb(*scene_iter)) {
2225 if (
STREQ(base.object->id.name + 2, name)) {
2271 bool run_again =
true;
2278 iter->
dupob =
nullptr;
2300 *ob = (*base)->object;
2305 while ((*scene)->set) {
2306 (*scene) = (*scene)->set;
2315 if (object_bases->first()) {
2316 *base = object_bases->first();
2317 *ob = (*base)->object;
2326 *base = (*base)->
next;
2328 *ob = (*base)->object;
2333 while ((*scene)->set) {
2334 (*scene) = (*scene)->set;
2343 if (object_bases->first()) {
2344 *base = object_bases->first();
2345 *ob = (*base)->object;
2354 if (*base ==
nullptr) {
2359 if (depsgraph && (*base)->object->transflag &
OB_DUPLI) {
2363 if ((*base)->object->instance_collection ==
nullptr) {
2398 iter->
dupob =
nullptr;
2449 Object *first_camera =
nullptr;
2453 if ((m.
frame <= time) && (m.
frame > frame)) {
2457 if (frame == time) {
2462 if (m.
frame < min_frame) {
2464 min_frame = m.
frame;
2474 return first_camera;
2493 const ListBaseT<TimeMarker> *markers = &scene->
markers;
2497 for (m1 = markers->first(), m2 = markers->last(); m1 && m2; m1 = m1->
next, m2 = m2->
prev) {
2498 if (m1->
frame == frame) {
2506 if (m2->
frame == frame) {
2519 if (marker.
frame == frame) {
2523 if (marker.
frame > best_frame && marker.
frame < frame) {
2524 best_marker = ▮
2525 best_frame = marker.
frame;
2529 return best_marker ? best_marker->
name :
nullptr;
2533 const double interval_in_seconds,
2539 const double interval_in_frames = scene->frames_per_second() * interval_in_seconds;
2540 const double second_prev = interval_in_frames *
floor(frame / interval_in_frames);
2541 const double second_next = second_prev +
ceil(interval_in_frames);
2542 const double delta_prev = frame - second_prev;
2543 const double delta_next = second_next - frame;
2544 return float((delta_prev < delta_next) ? second_prev : second_next);
2564 if (sce->
set ==
nullptr) {
2567 totscene = bmain->
scenes.count();
2569 for (a = 0, sce_iter = sce; sce_iter->
set; sce_iter = sce_iter->
set, a++) {
2588 float ctime = frame;
2604 scene->
r.
cfra = int(intpart);
2620 if (is_playing_forward) {
2753 const int recalc = scene->
id.
recalc;
2797 bool used_multiple_passes =
false;
2800 if (run_callbacks) {
2811 for (
int pass = 0; pass < 2; pass++) {
2824 if (run_callbacks) {
2850 const bool backup =
true;
2852 used_multiple_passes =
true;
2853 run_callbacks =
false;
2857 if (used_multiple_passes) {
2860 const bool is_time_update =
false;
2863 const bool backup =
false;
2881 bool used_multiple_passes =
false;
2893 for (
int pass = 0; pass < 2; pass++) {
2932 const bool backup =
true;
2934 used_multiple_passes =
true;
2938 if (used_multiple_passes) {
2942 const bool is_time_update =
true;
2948 const bool backup =
false;
2968 name =
DATA_(
"RenderView");
2975 DATA_(
"RenderView"),
3034 if (base && base->
next) {
3038 if ((base ==
nullptr) && (view_layer !=
nullptr)) {
3043 if (object_bases->first()) {
3044 return object_bases->first();
3052 while ((*sce_iter = (*sce_iter)->
set)) {
3122 const char *none_display_name;
3160 return max_ii(threads, 1);
3170 *r_width = (r->
xsch * r->
size) / 100;
3171 *r_height = (r->
ysch * r->
size) / 100;
3186 return (
U.pixelsize > 1.5f) ? 2 : 1;
3237 return (srv[0] && ((srv[0]->viewflag &
SCE_VIEW_DISABLE) == 0) && srv[1] &&
3243 if (srv ==
nullptr) {
3273 if ((!viewname) || (!viewname[0])) {
3292 if ((!viewname) || (!viewname[0])) {
3298 return STREQ(viewname, srv.name);
3314 for (srv = rd->
views.first(), nr = 0; srv; srv = srv->
next) {
3316 if (nr++ == view_id) {
3344 if ((!viewname) || (!viewname[0])) {
3348 for (srv = rd->
views.first(), nr = 0; srv; srv = srv->
next) {
3362 const char *filepath,
3370 const char *filepath,
3371 const char *viewname,
3394 if ((viewname ==
nullptr) || (viewname[0] ==
'\0')) {
3418 const char *filepath,
3423 const char delims[] = {
'.',
'\0'};
3429 if (*r_ext ==
nullptr) {
3437 const size_t suffix_len = strlen(srv.
suffix);
3438 if (basename_len >= suffix_len &&
3439 STREQLEN(filepath + basename_len - suffix_len, srv.
suffix, suffix_len))
3441 BLI_strncpy(r_prefix, filepath, basename_len - suffix_len + 1);
3451 const size_t height,
3490 if (rd->
ppm_base == 0.0f) [[unlikely]] {
3498 double xasp = 1.0, yasp = 1.0;
3500 yasp = double(rd->
xasp) / double(rd->
yasp);
3503 xasp = double(rd->
yasp) / double(rd->
xasp);
3506 const double ppm_base = rd->
ppm_base;
3509 r_ppm[0] = (ppm_factor / ppm_base) * xasp;
3510 r_ppm[1] = (ppm_factor / ppm_base) * yasp;
3532 Depsgraph *depsgraph =
static_cast<Depsgraph *
>(value);
3538 scene->
depsgraph_hash = MEM_new<SceneDepsgraphsMap>(
"Scene Depsgraph Hash");
3574 const bool allocate_ghash_entry)
3582 if (allocate_ghash_entry) {
3592 if (!allocate_ghash_entry) {
3604 if (depsgraph_ptr ==
nullptr) {
3608 if (*depsgraph_ptr !=
nullptr) {
3610 return depsgraph_ptr;
3628 return depsgraph_ptr;
3647 return (depsgraph_ptr !=
nullptr) ? *depsgraph_ptr :
nullptr;
3652 if (key_full ==
nullptr) {
3683 if (depsgraph !=
nullptr && *depsgraph !=
nullptr) {
3688 *depsgraph =
nullptr;
3693 return depsgraph_extract;
3703 Depsgraph **depsgraph_extract_ptr =
reinterpret_cast<Depsgraph **
>(
3705 if (depsgraph_extract_ptr ==
nullptr) {
3708 BLI_assert(*depsgraph_extract_ptr !=
nullptr);
3715 Depsgraph *depsgraph = *depsgraph_extract_ptr;
3721 *depsgraph_scene_ptr = depsgraph;
3722 *depsgraph_extract_ptr =
nullptr;
3744 else if (orient_slot->
index_custom > orientation_index) {
3772template<>
float3x3 View3DCursor::matrix<float3x3>()
const
3775 if (this->rotation_mode > 0) {
3776 eulO_to_mat3(mat.ptr(), this->rotation_euler, this->rotation_mode);
3792 if (this->rotation_mode > 0) {
3793 eulO_to_quat(&quat.w, this->rotation_euler, this->rotation_mode);
3804void View3DCursor::set_matrix(
const float3x3 &mat,
const bool use_compat)
3808 switch (this->rotation_mode) {
3814 copy_v4_v4(quat_orig, this->rotation_quaternion);
3829 this->rotation_euler, this->rotation_euler, this->rotation_mode, mat.ptr());
3832 mat3_to_eulO(this->rotation_euler, this->rotation_mode, mat.ptr());
3839void View3DCursor::set_rotation(
const math::Quaternion &quat,
bool use_compat)
3843 switch (this->rotation_mode) {
3847 copy_v4_v4(quat_orig, this->rotation_quaternion);
3851 copy_qt_qt(this->rotation_quaternion, &quat.w);
3862 this->rotation_euler, this->rotation_euler, this->rotation_mode, &quat.w);
3865 quat_to_eulO(this->rotation_euler, this->rotation_mode, &quat.w);
3872template<>
float4x4 View3DCursor::matrix<float4x4>()
const
3874 float4x4 mat(this->matrix<float3x3>());
3875 mat.location() =
float3(this->location);
3879void View3DCursor::set_matrix(
const float4x4 &mat,
const bool use_compat)
3881 this->set_matrix(
float3x3(mat), use_compat);
Functions and classes to work with Actions.
Blender kernel action and pose functionality.
#define FOREACH_SCENE_OBJECT_END
#define FOREACH_SCENE_OBJECT_BEGIN(scene, _instance)
#define IDP_BlendDataRead(reader, prop)
#define BKE_LIB_FOREACHID_PROCESS_FUNCTION_CALL(data_, func_call_)
#define BKE_LIB_FOREACHID_PROCESS_IDSUPER(data_, id_super_, cb_flag_)
#define FOREACH_MAIN_ID_END
#define FOREACH_MAIN_ID_BEGIN(_bmain, _id)
#define NODE_CLASS_OUTPUT
#define CMP_NODE_COMPOSITE_DEPRECATED
API for Blender-side Rigid Body stuff.
#define BLI_ASSERT_UNIT_M3(m)
#define BLI_ASSERT_UNIT_QUAT(q)
#define SNPRINTF_UTF8(dst, format,...)
#define STRNCPY_UTF8(dst, src)
#define BLO_read_raw_address(reader, ptr_p)
#define BLO_read_struct_list(reader, struct_name, list)
#define BLO_read_struct(reader, struct_name, ptr_p)
#define BLO_read_struct_no_us(reader, struct_name, ptr_p)
external readfile function prototypes.
#define BLT_I18NCONTEXT_ID_SCENE
#define FILTER_ID_GD_LEGACY
#define ID_IS_LINKED(_id)
#define ID_NEW_SET(_id, _idn)
Object groups, one object can be in many groups at once.
Object is a sort of wrapper for general info.
Types and defines for representing Rigid Body entities.
#define STEREO_LEFT_SUFFIX
#define STEREO_RIGHT_NAME
#define STEREO_RIGHT_SUFFIX
#define STRIP_HAS_PATH(_strip)
Read Blender memory allocation and freeing.
#define STREQLEN(a, b, n)
#define UNUSED_VARS_NDEBUG(...)
#define INIT_DEFAULT_STRUCT_AFTER(struct_dst, member)
#define BLI_assert_msg(a, msg)
const Value * lookup_ptr(const Key &key) const
ValueIterator values() const &
Value lookup_default(const Key &key, const Value &default_value) const
Value pop_default(const Key &key, const Value &default_value)
Value & lookup_or_add(const Key &key, const Value &value)
bool fcurve_remove(FCurve &fcurve_to_remove)
Span< const FCurve * > fcurves() const
const T & data(const Action &owning_action) const
Depsgraph * preview_depsgraph
void camera(KernelGlobals &kg, const ShadingData &sd, float3 &outview, float &outdepth, float &outdist)
ccl_device_inline dual1 len(const ccl_private dual< T > &a)
ccl_device_inline int4 srl(const int4 a, const int i)
const animrig::Channelbag * channelbag_for_action_slot(const Action &action, slot_handle_t slot_handle)
std::optional< std::pair< Action *, Slot * > > get_action_slot_pair(ID &animated_id)
void copy_effects(Scene &target_scene, const Scene &source_scene, const int flags)
void write_effects(const Scene &scene, BlendWriter &writer)
void free_effects(Scene &scene)
void for_each_id_in_effects(const Scene &scene, LibraryForeachIDData &data)
void read_effects(Scene &scene, BlendDataReader &reader)
bool is_effect_enabled(const SceneCompositorEffect &effect, ExecutionMode mode)
void node_tree_blend_write(BlendWriter *writer, bNodeTree *ntree)
bNodeTree * node_tree_copy_tree_ex(const bNodeTree &ntree, Main *bmain, bool do_id_user)
void node_tree_free_embedded_tree(bNodeTree *ntree)
void shallow_swap(T &a, T &b)
internal::ShallowDataConstRef< T > shallow_copy(const T &other)
uint32_t struct_size(Span< shader::ShaderCreateInfo::PushConst > push_constants)
QuaternionBase< float > Quaternion
SequencerToolSettings * tool_settings_init()
void seqbase_duplicate_recursive(Main *bmain, const Scene *scene_src, Scene *scene_dst, ListBaseT< Strip > *seqbase_dst, const ListBaseT< Strip > *seqbase_src, const StripDuplicate dupe_flag, const int copy_flag)
void foreach_strip(ListBaseT< Strip > *seqbase, ForEachFunc callback, void *user_data)
SequencerToolSettings * tool_settings_copy(SequencerToolSettings *tool_settings)
void tool_settings_free(SequencerToolSettings *tool_settings)
void editing_free(Scene *scene, const bool do_id_user)
void blend_read(BlendDataReader *reader, ListBaseT< Strip > *seqbase)
bool is_valid_strip_channel(const Strip *strip)
void blend_write(BlendWriter *writer, ListBaseT< Strip > *seqbase)
bool BKE_scene_multiview_is_render_view_active(const RenderData *rd, const SceneRenderView *srv)
void BKE_sound_update_scene(Depsgraph *depsgraph, Scene *scene)
void DEG_graph_tag_relations_update(Depsgraph *graph)
CurveMapping * BKE_curvemapping_add(int tot, float minx, float miny, float maxx, float maxy)
void * BLI_findptr(const ListBase *listbase, const void *ptr, int offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void * MEM_new_uninitialized(size_t len, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2)
const char * IMB_colormanagement_display_get_none_name()
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void BKE_keyingsets_blend_read_data(BlendDataReader *reader, ListBaseT< KeyingSet > *list)
@ SCE_READFILE_LIBLINK_NEED_SETSCENE_CHECK
static void scene_foreach_id(ID *id, LibraryForeachIDData *data)
void BKE_callback_exec_id_depsgraph(Main *bmain, ID *id, Depsgraph *depsgraph, eCbEvent evt)
int BKE_render_preview_pixel_size(const RenderData *r)
static void scene_init_data(ID *id)
void BKE_copy_time_markers(ListBaseT< TimeMarker > &markers_dst, const ListBaseT< TimeMarker > &markers_src, int flag)
void BKE_scene_graph_update_for_newframe(Depsgraph *depsgraph)
unsigned __int64 uint64_t
Main * BKE_lib_query_foreachid_process_main_get(const LibraryForeachIDData *data)
void BLO_read_glob_list(BlendDataReader *reader, ListBase *list)
CurveMapping * BKE_curvemapping_copy(const CurveMapping *cumap)
void BKE_previewimg_id_free(ID *id)
void BKE_scene_view_layer_graph_evaluated_ensure(Main *bmain, Scene *scene, ViewLayer *view_layer)
char * STRNCPY(char(&dst)[N], const char *src)
bool BKE_scene_use_spherical_stereo(Scene *scene)
void DEG_enable_editors_update(Depsgraph *depsgraph)
void BKE_time_markers_blend_read(BlendDataReader *reader, ListBaseT< TimeMarker > &markers)
static void scene_foreach_asset_weak_reference(ID *id, FunctionRef< void(AssetWeakReference &)> fn)
bool BKE_bpath_foreach_path_dirfile_fixed_process(BPathForeachPathData *bpath_data, char *path_dir, size_t path_dir_maxncpy, char *path_file, size_t path_file_maxncpy)
const char * BKE_scene_multiview_render_view_name_get(const RenderData *rd, int view_id)
ID * BKE_libblock_find_name(Main *bmain, short type, const char *name, const std::optional< Library * > lib=std::nullopt) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Scene * BKE_scene_find_replacement(const Main &bmain, const Scene &scene, FunctionRef< bool(const Scene &scene)> scene_validate_cb=nullptr)
void BKE_scene_ensure_depsgraph_hash(Scene *scene)
Collection * BKE_collection_duplicate(Main *bmain, Collection *parent, CollectionChild *child_old, Collection *collection, eDupli_ID_Flags duplicate_flags, uint duplicate_options)
void BKE_scene_frame_clamp_for_playback(Scene *scene, bool is_playing_forward)
static void scene_foreach_rigidbodyworldSceneLooper(RigidBodyWorld *, ID **id_pointer, void *user_data, const LibraryForeachIDCallbackFlag cb_flag)
BMesh * BKE_editmesh_bmesh_get_for_write(Mesh *mesh)
int BKE_scene_num_threads(const Scene *scene)
void BKE_sound_ensure_scene(Scene *scene)
MINLINE void copy_v3_v3(float r[3], const float a[3])
void BKE_previewimg_blend_read(BlendDataReader *reader, PreviewImage *prv)
BlendFileReadReport * BLO_read_data_reports(BlendDataReader *reader)
Scene * BKE_scene_set_name(Main *bmain, const char *name)
@ BKE_CB_EVT_DEPSGRAPH_UPDATE_POST
@ BKE_CB_EVT_FRAME_CHANGE_POST
@ BKE_CB_EVT_DEPSGRAPH_UPDATE_PRE
@ BKE_CB_EVT_FRAME_CHANGE_PRE
bool DEG_is_fully_evaluated(const Depsgraph *depsgraph)
void BKE_libblock_relink_to_newid(Main *bmain, ID *id, int remap_flag) ATTR_NONNULL()
Depsgraph * BKE_scene_get_depsgraph(const Scene *scene, const ViewLayer *view_layer)
int BKE_scene_multiview_view_id_get(const RenderData *rd, const char *viewname)
const char * IMB_colormanagement_view_get_raw_or_default_name(const char *display_name)
void DEG_graph_free(Depsgraph *graph)
void BKE_keyingsets_copy(ListBaseT< KeyingSet > *newlist, const ListBaseT< KeyingSet > *list)
@ V3D_GIZMO_SHOW_OBJECT_TRANSLATE
@ V3D_GIZMO_SHOW_OBJECT_SCALE
@ V3D_GIZMO_SHOW_OBJECT_ROTATE
void BKE_view_layer_blend_write(BlendWriter *writer, const Scene *scene, ViewLayer *view_layer)
bool BKE_scene_can_be_removed(const Main *bmain, const Scene *scene)
void BKE_paint_settings_foreach_mode(ToolSettings *ts, FunctionRef< void(Paint &paint)> fn)
static void scene_blend_write_compositor_forward_compat(Scene &scene, const bNodeTree &compositing_node_group, BlendWriter *writer)
void BKE_collection_blend_write_prepare_nolib(BlendWriter *writer, Collection *collection)
void void void void void void BLI_duplicatelist(ListBase *dst, const ListBase *src) ATTR_NONNULL(1
void BKE_scene_multiview_filepath_get(const SceneRenderView *srv, const char *filepath, char *r_filepath)
void BKE_scene_allocate_depsgraph_hash(Scene *scene)
void mat3_normalized_to_quat(float q[4], const float mat[3][3])
bool BKE_scene_has_view_layer(const Scene *scene, const ViewLayer *layer)
void BKE_image_format_blend_write(BlendWriter *writer, ImageFormatData *imf)
@ IDWALK_NO_ORIG_POINTERS_ACCESS
@ IDWALK_DO_DEPRECATED_POINTERS
void BKE_rigidbody_world_init_runtime(struct RigidBodyWorld *rbw)
void BKE_previewimg_blend_write(BlendWriter *writer, const PreviewImage *prv)
IDProperty * IDP_CopyProperty(const IDProperty *prop) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void BKE_scene_remove_rigidbody_object(Main *bmain, Scene *scene, Object *ob, bool free_us)
int get_render_subsurf_level(const RenderData *r, int lvl, bool for_render)
static void prepare_mesh_for_viewport_render(Main *bmain, const Scene *scene, ViewLayer *view_layer)
static void scene_lib_override_apply_post(ID *id_dst, ID *)
eSceneForeachUndoPreserveProcess
@ SCENE_FOREACH_UNDO_RESTORE
@ SCENE_FOREACH_UNDO_NO_RESTORE
static void scene_blend_read_data(BlendDataReader *reader, ID *id)
static void depsgraph_key_value_free(void *value)
float BKE_scene_frame_to_ctime(const Scene *scene, int frame)
bool bool BLI_path_suffix(char *path, size_t path_maxncpy, const char *suffix, const char *sep) ATTR_NONNULL(1
void BKE_scene_disable_color_management(Scene *scene)
@ PTCACHE_FLAG_INFO_DIRTY
void IDP_foreach_property(IDProperty *id_property_root, int type_filter, FunctionRef< void(IDProperty *id_property)> callback)
void(*)(ID *id, const IDCacheKey *cache_key, void **cache_p, uint flags, void *user_data) IDTypeForeachCacheFunctionCallback
void BKE_curvemapping_copy_data(CurveMapping *target, const CurveMapping *cumap)
@ RE_USE_SPHERICAL_STEREO
@ RE_USE_SHADING_NODES_CUSTOM
void BKE_color_managed_view_settings_init(ColorManagedViewSettings *view_settings, const ColorManagedDisplaySettings *display_settings, const char *view_transform)
void BKE_scene_free_view_layer_depsgraph(Scene *scene, ViewLayer *view_layer)
void BKE_color_managed_colorspace_settings_copy(ColorManagedColorspaceSettings *colorspace_settings, const ColorManagedColorspaceSettings *settings)
Depsgraph * DEG_graph_new(Main *bmain, Scene *scene, ViewLayer *view_layer, eEvaluationMode mode)
static Depsgraph ** scene_get_depsgraph_p(Scene *scene, ViewLayer *view_layer, const bool allocate_ghash_entry)
void * BLI_findstring(const ListBase *listbase, const char *id, int offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void BKE_curvemapping_blend_write(BlendWriter *writer, const CurveMapping *cumap)
void mat3_to_compatible_eulO(float eul[3], const float oldrot[3], short order, const float mat[3][3])
void axis_angle_to_mat3(float R[3][3], const float axis[3], float angle)
void axis_angle_to_quat(float r[4], const float axis[3], float angle)
void BKE_curvemapping_curves_blend_write(BlendWriter *writer, const CurveMapping *cumap)
int BKE_scene_orientation_get_index(Scene *scene, int slot_index)
ID * BKE_id_copy_for_duplicate(Main *bmain, ID *id, eDupli_ID_Flags duplicate_flags, int copy_flags)
static char * scene_undo_depsgraph_gen_key(Scene *scene, ViewLayer *view_layer, char *key_full)
const char * BKE_scene_multiview_view_suffix_get(const RenderData *rd, const char *viewname)
void BKE_color_managed_display_settings_init(ColorManagedDisplaySettings *settings)
static void remove_sequencer_fcurves(Scene *sce)
void BKE_callback_exec_id(Main *bmain, ID *id, eCbEvent evt)
@ ID_REMAP_SKIP_USER_CLEAR
@ ID_REMAP_FORCE_OBDATA_IN_EDITMODE
const char * RE_engine_id_CYCLES
MINLINE int max_ii(int a, int b)
@ COLOR_ROLE_DEFAULT_SEQUENCER
static void scene_foreach_working_space_color(ID *id, const IDTypeForeachColorFunctionCallback &fn)
void BKE_screen_view3d_shading_blend_read_data(BlendDataReader *reader, View3DShading *shading)
void BKE_color_managed_view_settings_blend_read_data(BlendDataReader *reader, ColorManagedViewSettings *settings)
void BKE_paint_copy(const Paint *src, Paint *dst, int flag)
bScreen * BKE_workspace_active_screen_get(const WorkSpaceInstanceHook *hook) GETTER_ATTRS
void DEG_make_active(Depsgraph *depsgraph)
int BKE_scene_multiview_num_views_get(const RenderData *rd)
MatBase< float, 4, 4 > float4x4
int BKE_unit_base_of_type_get(int system, int type)
static void scene_foreach_path(ID *id, BPathForeachPathData *bpath_data)
ListBaseT< Base > * BKE_view_layer_object_bases_unsynced_get(ViewLayer *view_layer)
void BKE_curvemapping_free(CurveMapping *cumap)
void BKE_animdata_duplicate_id_action(Main *bmain, ID *id, uint duplicate_flags)
bool BKE_scene_validate_setscene(Main *bmain, Scene *sce)
LibraryForeachIDFlag BKE_lib_query_foreachid_process_flags_get(const LibraryForeachIDData *data)
bool BKE_scene_use_shading_nodes_custom(Scene *scene)
void DEG_ids_clear_recalc(Depsgraph *depsgraph, bool backup)
void DEG_evaluate_on_refresh(Depsgraph *graph, DepsgraphEvaluateSyncWriteback sync_writeback=DEG_EVALUATE_SYNC_WRITEBACK_NO)
void BKE_view_layer_free_ex(ViewLayer *view_layer, bool do_id_user)
void BKE_toolsettings_free(ToolSettings *toolsettings)
void BKE_id_blend_write(BlendWriter *writer, ID *id)
static void scene_foreach_toolsettings(LibraryForeachIDData *data, ToolSettings *toolsett, const bool do_undo_restore, BlendLibReader *reader, ToolSettings *toolsett_old)
void BKE_color_managed_view_settings_copy(ColorManagedViewSettings *new_settings, const ColorManagedViewSettings *settings)
void BKE_scene_update_tag_audio_volume(Depsgraph *, Scene *scene)
void MEM_delete_void(void *vmemh)
const char * RE_engine_id_BLENDER_WORKBENCH
@ LIB_ID_CREATE_NO_USER_REFCOUNT
@ LIB_ID_CREATE_NO_ALLOCATE
void BKE_ptcache_id_from_rigidbody(PTCacheID *pid, struct Object *ob, struct RigidBodyWorld *rbw)
void BKE_scene_frame_set(Scene *scene, float frame)
void BKE_render_resolution(const RenderData *r, const bool use_crop, int *r_width, int *r_height)
void BKE_scene_graph_evaluated_ensure(Depsgraph *depsgraph, Main *bmain)
void quat_to_compatible_eulO(float eul[3], const float oldrot[3], short order, const float quat[4])
void BKE_sound_update_scene_listener(Scene *scene)
void BLI_ghash_insert(GHash *gh, void *key, void *val)
static bool strip_foreach_path_callback(Strip *strip, void *user_data)
static void scene_graph_update_tagged(Depsgraph *depsgraph, Main *bmain, bool only_if_tagged)
const char * RE_engine_id_BLENDER_EEVEE
ScenePlaybackRange BKE_scene_get_playback_range(const Scene *scene)
void quat_to_compatible_quat(float q[4], const float a[4], const float old[4])
int BKE_scene_base_iter_next(Depsgraph *depsgraph, SceneBaseIter *iter, Scene **scene, int val, Base **base, Object **ob)
const char * BKE_main_blendfile_path(const Main *bmain) ATTR_NONNULL()
void BKE_ptcache_blend_read_data(struct BlendDataReader *reader, ListBaseT< PointCache > *ptcaches, struct PointCache **ocache, int force_disk)
void ** BLI_ghash_lookup_p(GHash *gh, const void *key) ATTR_WARN_UNUSED_RESULT
void BKE_scene_ppm_get(const RenderData *rd, double r_ppm[2])
void BKE_lib_query_foreachid_process(LibraryForeachIDData *data, ID **id_pp, LibraryForeachIDCallbackFlag cb_flag)
@ LIB_ID_DUPLICATE_IS_SUBPROCESS
@ LIB_ID_DUPLICATE_IS_ROOT_ID
void eulO_to_mat3(float M[3][3], const float e[3], short order)
void BKE_keyingsets_foreach_id(LibraryForeachIDData *data, const ListBaseT< KeyingSet > *keyingsets)
void quat_to_mat3(float m[3][3], const float q[4])
int BLI_system_thread_count()
void BKE_collection_free_data(Collection *collection)
void BKE_curvemapping_init(CurveMapping *cumap)
void * BLI_findlink(const ListBase *listbase, int number) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void BLI_uniquename(const ListBase *list, void *vlink, const char *defname, char delim, int name_offset, size_t name_maxncpy) ATTR_NONNULL(1
int BKE_render_num_threads(const RenderData *r)
int BLI_findindex(const ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void BKE_curvemapping_blend_read(BlendDataReader *reader, CurveMapping *cumap)
bool BKE_scene_multiview_is_render_view_first(const RenderData *rd, const char *viewname)
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, size_t dst_maxncpy) ATTR_NONNULL(1
void BKE_image_editors_update_frame(const Main *bmain, int cfra)
@ CYCLES_FEATURES_EXPERIMENTAL
@ CYCLES_FEATURES_SUPPORTED
ViewLayer * DEG_get_input_view_layer(const Depsgraph *graph)
const char * BKE_scene_find_last_marker_name(const Scene *scene, int frame)
bool BKE_scene_uses_blender_eevee(const Scene *scene)
void BKE_color_managed_display_settings_copy(ColorManagedDisplaySettings *new_settings, const ColorManagedDisplaySettings *settings)
static bool check_rendered_viewport_visible(Main *bmain)
void BLI_ghash_free(GHash *gh, GHashKeyFreeFP keyfreefp, GHashValFreeFP valfreefp)
void BLI_remlink(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void copy_qt_qt(float q[4], const float a[4])
bool DEG_id_type_any_updated(const Depsgraph *depsgraph)
Object * BKE_view_layer_edit_object_get(const ViewLayer *view_layer)
Main * DEG_get_bmain(const Depsgraph *graph)
void DEG_id_tag_update(ID *id, unsigned int flags)
float BKE_scene_frame_get(const Scene *scene)
const char * IMB_colormanagement_role_colorspace_name_get(int role)
void BKE_keyingsets_blend_write(BlendWriter *writer, ListBaseT< KeyingSet > *list)
void BKE_view_layer_copy_data(Scene *scene_dst, const Scene *scene_src, ViewLayer *view_layer_dst, const ViewLayer *view_layer_src, int flag)
int BKE_scene_orientation_get_index_from_flag(Scene *scene, int flag)
BMesh const char void * data
void object_duplilist(Depsgraph *depsgraph, Object *ob, Set< const Object * > *include_objects, DupliList &r_duplilist)
bool BKE_view_layer_is_synced(const ViewLayer &view_layer)
void BKE_time_markers_blend_write(BlendWriter *writer, ListBaseT< TimeMarker > &markers)
TransformOrientationSlot * BKE_scene_orientation_slot_get(Scene *scene, int slot_index)
void BKE_curvemap_reset(CurveMap *cuma, const rctf *clipr, int preset, CurveMapSlopeType slope)
static Depsgraph ** scene_ensure_depsgraph_p(Main *bmain, Scene *scene, ViewLayer *view_layer)
void BKE_library_foreach_ID_embedded(LibraryForeachIDData *data, ID **id_pp)
void BKE_paint_blend_read_data(BlendDataReader *reader, const Scene *scene, Paint *paint)
ToolSettings * BKE_toolsettings_copy(ToolSettings *toolsettings, int flag)
void BKE_paint_init(Main *bmain, Scene *sce, PaintMode mode, bool ensure_brushes=true)
void IMB_colormanagement_colorspace_settings_set(ColorManagedColorspaceSettings *settings, const char *name)
void quat_to_eulO(float e[3], short order, const float q[4])
void DEG_graph_replace_owners(Depsgraph *depsgraph, Main *bmain, Scene *scene, ViewLayer *view_layer)
void BKE_scene_object_base_flag_sync_from_base(Base *base)
BlendFileReadReport * BLO_read_lib_reports(BlendLibReader *reader)
void BKE_sound_set_scene_volume(Scene *scene, float volume)
bool BKE_main_view_layers_synced_ensure(const Main *bmain)
char char size_t BLI_strncpy_rlen(char *__restrict dst, const char *__restrict src, size_t dst_maxncpy) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
void BKE_scene_free_depsgraph_hash(Scene *scene)
void IMB_stereo3d_write_dimensions(char mode, bool is_squeezed, size_t width, size_t height, size_t *r_width, size_t *r_height)
const char * BKE_scene_multiview_view_id_suffix_get(const RenderData *rd, int view_id)
static void scene_blend_write(BlendWriter *writer, ID *id, const void *id_address)
void BKE_curvemapping_changed(CurveMapping *cumap, bool rem_doubles)
CurveMapping * BKE_paint_default_curve_inverted()
void BLI_freelinkN(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void quat_to_axis_angle(float axis[3], float *angle, const float q[4])
static void scene_foreach_paint(LibraryForeachIDData *data, Paint *paint, const bool do_undo_restore, BlendLibReader *reader, Paint *paint_old)
void BKE_scene_graph_update_tagged(Depsgraph *depsgraph, Main *bmain)
Scene * BKE_scene_add(Main *bmain, const char *name)
CurveMapping * BKE_sculpt_default_cavity_curve()
constexpr size_t ARRAY_SIZE(const T(&arg)[N]) noexcept
void BKE_collection_blend_write_nolib(BlendWriter *writer, Collection *collection)
bool BKE_view_layer_synced_ensure(const Main &bmain, const Scene *scene, ViewLayer *view_layer)
void DEG_debug_name_set(Depsgraph *depsgraph, const char *name)
void DEG_ids_restore_recalc(Depsgraph *depsgraph)
void BKE_image_format_blend_read_data(BlendDataReader *reader, ImageFormatData *imf)
void DEG_editors_update(Depsgraph *depsgraph, bool time)
bool BKE_scene_multiview_is_render_view_last(const RenderData *rd, const char *viewname)
ViewLayer * DEG_get_evaluated_view_layer(const Depsgraph *graph)
SceneRenderView * BKE_scene_multiview_render_view_findindex(const RenderData *rd, int view_id)
void BLO_reportf_wrap(BlendFileReadReport *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
void BKE_image_format_init(ImageFormatData *imf)
void mat3_to_axis_angle(float axis[3], float *angle, const float mat[3][3])
struct RigidBodyWorld * BKE_rigidbody_world_copy(struct RigidBodyWorld *rbw, int flag)
Scene * BKE_scene_find_from_collection(const Main *bmain, const Collection *collection)
MatBase< float, 3, 3 > float3x3
eEvaluationMode DEG_get_mode(const Depsgraph *graph)
void BKE_view_layer_blend_read_data(BlendDataReader *reader, ViewLayer *view_layer)
void BKE_sound_mute_scene(Scene *scene, bool muted)
void BKE_curveprofile_blend_write(struct BlendWriter *writer, const struct CurveProfile *profile)
bool BKE_scene_multiview_is_stereo3d(const RenderData *rd)
RenderEngineType * RE_engines_find(const char *idname)
static void scene_undo_preserve(BlendLibReader *reader, ID *id_new, ID *id_old)
TransformOrientation * BKE_scene_transform_orientation_find(const Scene *scene, int index)
void BKE_image_format_free(ImageFormatData *imf)
void BKE_scene_multiview_videos_dimensions_get(const RenderData *rd, const ImageFormatData *imf, size_t width, size_t height, size_t *r_width, size_t *r_height)
void BKE_curvemapping_set_defaults(CurveMapping *cumap, int tot, float minx, float miny, float maxx, float maxy, eBezTriple_Handle default_handle_type)
bool BKE_scene_uses_shader_previews(const Scene *scene)
int BKE_scene_transform_orientation_get_index(const Scene *scene, const TransformOrientation *orientation)
static void scene_foreach_cache(ID *id, IDTypeForeachCacheFunctionCallback function_callback, void *user_data)
void BKE_sound_update_fps(Main *bmain, Scene *scene)
void BKE_scene_transform_orientation_remove(Scene *scene, TransformOrientation *orientation)
bool BKE_imtype_is_movie(char imtype)
static void scene_foreach_toolsettings_id_pointer_process(ID **id_p, const eSceneForeachUndoPreserveProcess action, BlendLibReader *reader, ID **id_old_p, const uint cb_flag)
void BKE_main_id_newptr_and_tag_clear(Main *bmain)
SceneRenderView * BKE_scene_add_render_view(Scene *sce, const char *name)
int BKE_scene_multiview_num_videos_get(const RenderData *rd, const ImageFormatData *imf)
void id_us_ensure_real(ID *id)
@ BKE_BPATH_FOREACH_PATH_SKIP_MULTIFILE
void BKE_scene_set_background(Main *bmain, Scene *sce)
void BKE_previewimg_id_copy(ID *new_id, const ID *old_id)
void BKE_curveprofile_free(struct CurveProfile *profile)
void BKE_rigidbody_remove_object(struct Main *bmain, struct Scene *scene, struct Object *ob, bool free_us)
static void scene_copy_data(Main *bmain, std::optional< Library * > owner_library, ID *id_dst, const ID *id_src, const int flag)
Object * BKE_scene_camera_switch_find(const Scene *scene, const int time)
void BKE_curvemapping_free_data(CurveMapping *cumap)
void BKE_rigidbody_free_world(struct Scene *scene)
void BKE_sound_destroy_scene(Scene *scene)
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
bool BKE_scene_uses_blender_workbench(const Scene *scene)
bool BKE_bpath_foreach_path_fixed_process(BPathForeachPathData *bpath_data, char *path, size_t path_maxncpy)
static void scene_blend_read_after_liblink(BlendLibReader *reader, ID *id)
float BKE_scene_ctime_get(const Scene *scene)
void BKE_paint_free(Paint *paint)
void BKE_scene_orientation_slot_set_index(TransformOrientationSlot *orient_slot, int orientation)
void IDP_FreeProperty(IDProperty *prop)
void BKE_scene_undo_depsgraphs_restore(Main *bmain, GHash *depsgraph_extract)
bool BKE_scene_camera_switch_update(Scene *scene)
bool BKE_scene_uses_cycles(const Scene *scene)
int BLI_system_num_threads_override_get()
Collection * BKE_collection_master_add(Scene *scene)
void eulO_to_quat(float q[4], const float e[3], short order)
void BKE_free_time_markers(ListBaseT< TimeMarker > &markers, bool do_id_user)
void BKE_scene_base_flag_to_objects(const Main &bmain, const Scene *scene, ViewLayer *view_layer)
struct CurveProfile * BKE_curveprofile_add(eCurveProfilePresets preset)
@ ID_RECALC_AUDIO_LISTENER
bool BKE_scene_object_find(const Main &bmain, Scene *scene, Object *ob)
float BKE_scene_frame_snap_by_seconds(const Scene *scene, double interval_in_seconds, float frame)
Scene * DEG_get_input_scene(const Depsgraph *graph)
void BKE_rigidbody_remove_constraint(struct Main *bmain, struct Scene *scene, struct Object *ob, bool free_us)
bool BKE_scene_remove_render_view(Scene *scene, SceneRenderView *srv)
static void link_recurs_seq(BlendDataReader *reader, ListBaseT< Strip > *lb)
void DEG_graph_relations_update(Depsgraph *graph)
TransformOrientationSlot * BKE_scene_orientation_slot_get_from_flag(Scene *scene, int flag)
GHash * BKE_scene_undo_depsgraphs_extract(Main *bmain)
void DEG_evaluate_on_framechange(Depsgraph *graph, float frame, DepsgraphEvaluateSyncWriteback sync_writeback=DEG_EVALUATE_SYNC_WRITEBACK_NO)
CurveMapping * BKE_paint_default_curve()
int bool bool bool size_t size_t BLI_str_rpartition(const char *str, const char delim[], const char **sep, const char **suf) ATTR_NONNULL(1
unsigned int BLI_ghashutil_strhash_p(const void *ptr)
ViewLayer * BKE_view_layer_add(const Main *bmain, Scene *scene, const char *name, ViewLayer *view_layer_source, int type)
void BKE_ptcache_blend_write(struct BlendWriter *writer, ListBaseT< PointCache > *ptcaches)
int BKE_scene_orientation_slot_get_index(const TransformOrientationSlot *orient_slot)
void BKE_scene_copy_data_eevee(Scene *sce_dst, const Scene *sce_src)
void BKE_color_managed_view_settings_free(ColorManagedViewSettings *settings)
void BKE_rigidbody_world_groups_relink(struct RigidBodyWorld *rbw)
@ SCE_VIEWS_FORMAT_MULTIVIEW
@ SCE_VIEWS_FORMAT_STEREO_3D
Depsgraph * BKE_scene_ensure_depsgraph(Main *bmain, Scene *scene, ViewLayer *view_layer)
void BKE_keyingsets_free(ListBaseT< KeyingSet > *list)
MINLINE void copy_v4_v4(float r[4], const float a[4])
Base * _setlooper_base_step(const Main &bmain, Scene **sce_iter, ViewLayer *view_layer, Base *base)
void BKE_scene_update_sound(Depsgraph *depsgraph, Main *bmain)
ViewLayer * BKE_view_layer_context_active_PLACEHOLDER(const Scene *scene)
void BKE_screen_view3d_shading_blend_write(BlendWriter *writer, View3DShading *shading)
void BKE_scene_groups_relink(Scene *sce)
void BKE_sound_seek_scene(Main *bmain, Scene *scene)
struct CurveProfile * BKE_curveprofile_copy(const struct CurveProfile *profile)
void BM_mesh_bm_to_me(Main *bmain, BMesh *bm, Mesh *mesh, const BMeshToMeshParams *params)
Object * BKE_scene_object_find_by_name(const Main &bmain, const Scene *scene, const char *name)
void BKE_color_managed_view_settings_blend_write(BlendWriter *writer, const ColorManagedViewSettings *settings)
void copy_m4_m4(float m1[4][4], const float m2[4][4])
GHash * BLI_ghash_new(GHashHashFP hashfp, GHashCmpFP cmpfp, const char *info) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
const char * RE_engine_id_BLENDER_EEVEE_NEXT
LibraryForeachIDCallbackFlag
@ IDWALK_CB_DIRECT_WEAK_LINK
@ IDWALK_CB_EMBEDDED_NOT_OWNING
@ IDWALK_CB_OVERRIDE_LIBRARY_NOT_OVERRIDABLE
VecBase< float, 3 > float3
@ DEG_EVALUATE_SYNC_WRITEBACK_YES
bool DEG_is_evaluated(const T *id)
bool BKE_main_collection_sync(const Main *bmain)
void BKE_curveprofile_blend_read(struct BlendDataReader *reader, struct CurveProfile *profile)
Scene * DEG_get_evaluated_scene(const Depsgraph *graph)
void mat3_to_eulO(float eul[3], short order, const float m[3][3])
ViewLayer * BKE_view_layer_default_render(const Scene *scene)
void BKE_scene_multiview_view_filepath_get(const RenderData *rd, const char *filepath, const char *view, char *r_filepath)
static bool strip_foreach_member_id_cb(Strip *strip, void *user_data)
@ eSeqModifierType_Compositor
MINLINE int min_ii(int a, int b)
MINLINE int clamp_i(int value, int min, int max)
ID * BKE_id_copy(Main *bmain, const ID *id)
void BKE_scene_graph_update_for_newframe_ex(Depsgraph *depsgraph, bool clear_recalc)
void BKE_view_layer_blend_read_after_liblink(BlendLibReader *reader, ID *self_id, ViewLayer *view_layer)
void id_us_plus_no_lib(ID *id)
struct EffectorWeights * BKE_effector_add_weights(struct Collection *collection)
void BKE_scene_multiview_view_prefix_get(const Scene *scene, const char *filepath, char *r_prefix, const char **r_ext)
void BKE_image_format_copy(ImageFormatData *imf_dst, const ImageFormatData *imf_src)
constexpr uint64_t get_default_hash(const T &v, const Args &...args)
bool BKE_scene_check_rigidbody_active(const Scene *scene)
ID * BLO_read_get_new_id_address_from_session_uid(BlendLibReader *reader, uint session_uid) ATTR_NONNULL(1)
bNodeLink & version_node_add_link(bNodeTree &ntree, bNode &node_a, bNodeSocket &socket_a, bNode &node_b, bNodeSocket &socket_b)
void * BKE_id_new(Main *bmain, short type, const char *name)
ListBaseT< Base > * BKE_view_layer_object_bases_get(ViewLayer *view_layer)
static void scene_free_data(ID *id)
struct ID * BKE_id_copy_in_lib(Main *bmain, std::optional< Library * > owner_library, const ID *id, std::optional< const ID * > new_owner_id, ID **new_id_p, int flag)
const char * BKE_scene_find_marker_name(const Scene *scene, int frame)
void BKE_rigidbody_world_id_loop(struct RigidBodyWorld *rbw, RigidbodyWorldIDFunc func, void *userdata)
bool BKE_view_layer_has_collection(const ViewLayer *view_layer, const Collection *collection)
Scene * BKE_scene_duplicate(Main *bmain, Scene *sce, eSceneCopyMethod type, eDupli_ID_Flags duplicate_flags, uint duplicate_options)
bNode & version_node_add_unknown(bNodeTree &ntree, bke::bNodeType &ntype, const char *idname, const int16_t legacy_type, const std::string &ui_name, const std::string &ui_description, const std::string &enum_name_legacy, const short nclass, const float width, const float height, const bool no_muting)
static void scene_foreach_layer_collection(LibraryForeachIDData *data, ListBaseT< LayerCollection > *lb, const bool is_master)
void BKE_paint_blend_write(BlendWriter *writer, Paint *paint)
void * MEM_new_array_zeroed(size_t len, size_t size, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1
int get_render_child_particle_number(const RenderData *r, int child_num, bool for_render)
bool BLI_ghashutil_strcmp(const void *a, const void *b)
@ CUMA_EXTEND_EXTRAPOLATE
void BKE_libblock_free_data_py(ID *id)
bNodeSocket & version_node_add_socket(bNodeTree &ntree, bNode &node, const eNodeSocketInOut in_out, const char *idname, const char *identifier)
static void direct_link_paint_helper(BlendDataReader *reader, const Scene *scene, Paint **paint)
float normalize_qt_qt(float r[4], const float q[4])
@ IDTYPE_FLAGS_NEVER_UNUSED
#define BKE_LIB_FOREACHID_UNDO_PRESERVE_PROCESS_FUNCTION_CALL(_data, _do_undo_restore, _func_call)
#define FOREACHID_PROCESS_IDSUPER(_data, _id_super, _cb_flag)
#define BKE_LIB_FOREACHID_UNDO_PRESERVE_PROCESS_IDSUPER_P(_data, _id_p, _do_undo_restore, _action, _reader, _id_old_p, _cb_flag)
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
bool update_shapekey_indices
ImageFormatData im_format
struct Object * cage_object
struct blender::BlendFileReadReport::@140003175311343306107257242277261221002217304000 count
void write_embedded_id_struct(const void *id_address, const T *id, BlendStructWriterTypedFn< T > fn=nullptr)
void write_id_struct(const void *id_address, const T *id, BlendStructWriterTypedFn< T > fn=nullptr)
void write_struct(const T *data, BlendStructWriterTypedFn< T > fn=nullptr)
struct IDProperty * system_properties
struct bNodeTree * node_group
eCurveMappingPreset preset
const ViewLayer * view_layer
friend bool operator==(const DepsgraphKey &a, const DepsgraphKey &b)=default
eEditingProxyStorageMode proxy_storage
eEditingShowMissingMediaFlag show_missing_media_flag
seq::EditingRuntime * runtime
ListBaseT< SeqTimelineChannel > channels
eEditingCacheFlag cache_flag
ListBaseT< Strip > seqbase
ListBaseT< FreestyleModuleConfig > modules
ListBaseT< FreestyleLineSet > linesets
struct FreestyleLineStyle * linestyle
struct Collection * group
struct CurveMapping * custom_ipo
struct Object * reference_object
struct GP_Sculpt_Guide guide
struct CurveMapping * cur_falloff
struct CurveMapping * cur_primitive
unsigned int id_session_uid
IDProperty * system_properties
ListBaseT< wmWindowManager > wm
ListBaseT< Object > objects
ListBaseT< Scene > scenes
const c_style_mat & ptr() const
bke::ObjectRuntime * runtime
eObject_VisibilityFlag visibility_flag
struct RigidBodyOb * rigidbody_object
struct RigidBodyCon * rigidbody_constraint
ListBaseT< PointCache > * ptcaches
ParticleBrushData brush[7]
struct Object * shape_object
ListBaseT< SceneRenderLayer > layers
ListBaseT< SceneRenderView > views
struct CurveMapping mblur_shutter_curve
ImageFormatData im_format
short simplify_subsurf_render
eSceneViews_Format views_format
float simplify_particles_render
void(*) render(struct RenderEngine *engine, struct Depsgraph *depsgraph)
struct PointCache * pointcache
ListBaseT< PointCache > ptcaches
struct Collection * constraints
eRigidBodyWorld_Flag flag
struct EffectorWeights * effector_weights
struct Collection * group
DNA_DEPRECATED struct PointCache * pointcache
struct RigidBodyWorld_Shared * shared
ListBaseT< PointCache > ptcaches
struct bNodeTree * node_group
struct SceneRenderView * next
ListBaseT< ViewLayer > view_layers
struct PreviewImage * preview
TransformOrientationSlot orientation_slots[4]
struct SceneDisplay display
struct Collection * master_collection
DNA_DEPRECATED struct Base * basact
ColorManagedViewSettings view_settings
struct PhysicsSettings physics_settings
ListBaseT< TimeMarker > markers
SceneDepsgraphsMap * depsgraph_hash
struct CustomData_MeshMasks customdata_mask
ListBaseT< TransformOrientation > transform_spaces
ListBaseT< struct KeyingSet > keyingsets
DNA_DEPRECATED char use_nodes
ColorManagedDisplaySettings display_settings
struct CustomData_MeshMasks customdata_mask_modal
DNA_DEPRECATED struct bNodeTree * compositing_node_group
ListBaseT< SceneCompositorEffect > compositor_effects
IDProperty * layer_properties
bke::SceneRuntime * runtime
DNA_DEPRECATED struct bNodeTree * nodetree
ColorManagedColorspaceSettings sequencer_colorspace_settings
struct ToolSettings * toolsettings
struct RigidBodyWorld * rigidbody_world
ListBaseT< SpaceLink > spacedata
DNA_DEPRECATED struct CurveMapping * automasking_cavity_curve_op
DNA_DEPRECATED struct CurveMapping * automasking_cavity_curve
struct Object * gravity_object
struct IDProperty * system_properties
struct CurveMapping * curve_rand_saturation
struct CurveMapping * curve_rand_value
struct CurveMapping * curve_rand_hue
struct CurveMapping * curve_distance_falloff
struct FreestyleConfig freestyle_config
ListBaseT< LayerCollection > layer_collections
struct IDProperty * id_properties
struct World * world_override
struct Material * mat_override
struct IDProperty * system_properties
ListBaseT< bNodeLink > links
DNA_DEPRECATED int chunksize
ListBaseT< struct ScrArea > areabase
ThumbnailCache * thumbnail_cache
struct WorkSpaceInstanceHook * workspace_hook