9#define DNA_DEPRECATED_ALLOW
31#define DNA_GENFILE_VERSIONING_MACROS
58#undef DNA_GENFILE_VERSIONING_MACROS
92#include "RNA_prototypes.hh"
126 if (
min !=
nullptr) {
130 if (
max !=
nullptr) {
134 if (soft_min !=
nullptr) {
139 if (soft_max !=
nullptr) {
144 if (
step !=
nullptr) {
148 if (default_value !=
nullptr) {
155 sizeof(
int) * default_value->
len);
169 if (
min !=
nullptr) {
173 if (
max !=
nullptr) {
177 if (soft_min !=
nullptr) {
182 if (soft_max !=
nullptr) {
187 if (
step !=
nullptr) {
191 if (precision !=
nullptr) {
195 if (default_value !=
nullptr) {
197 const int array_len = default_value->
len;
210 sizeof(
double) * array_len);
223 if (default_value !=
nullptr && default_value->
type ==
IDP_STRING) {
231 if (idprop_group ==
nullptr) {
236 if (ui_container ==
nullptr) {
242 if (prop_ui_data ==
nullptr) {
306 for (
Strip &strip : *seqbase) {
373 if (scene.
ed !=
nullptr) {
383 ListBaseT<ID> temp_list;
384 temp_list.clear_no_delete();
385 for (
ID &
id : lb->items_mutable()) {
402 ID *id_prev =
nullptr;
404 if (id_prev ==
nullptr) {
423 if (
object.defbase.count() < new_defbase->count()) {
424 object.defbase.free_no_destruct();
428 new_defbase->free_no_destruct();
429 *new_defbase =
object.defbase;
437 const ListBaseT<Strip> *seqbase)
440#define STRIP_SPEED_INTEGRATE (1 << 0)
441#define STRIP_SPEED_COMPRESS_IPO_Y (1 << 2)
443 for (
Strip &strip : *seqbase) {
446 const char *substr =
nullptr;
447 float globalSpeed_legacy =
v->globalSpeed_legacy;
449 if (globalSpeed_legacy == 1.0f) {
454 v->speed_fader = globalSpeed_legacy *
455 (
float(strip.input1->len) /
456 max_ff(
float(strip.input1->right_handle(scene) - strip.input1->start),
462 v->speed_fader = strip.speed_fader_legacy * globalSpeed_legacy;
465 globalSpeed_legacy *= 100.0f;
467 v->speed_fader_length = strip.speed_fader_legacy * globalSpeed_legacy;
468 substr =
"speed_length";
472 v->speed_fader_frame_number = int(strip.speed_fader_legacy * globalSpeed_legacy);
473 substr =
"speed_frame_number";
478 if (substr || globalSpeed_legacy != 1.0f) {
480 &scene->
id, &strip, RNA_Strip,
"speed_factor", 0,
nullptr);
482 if (globalSpeed_legacy != 1.0f) {
483 for (
int i = 0; i < fcu->
totvert; i++) {
485 bezt->
vec[0][1] *= globalSpeed_legacy;
486 bezt->
vec[1][1] *= globalSpeed_legacy;
487 bezt->
vec[2][1] *= globalSpeed_legacy;
492 fcu->rna_path_set_move(new_path);
502#undef STRIP_SPEED_INTEGRATE
503#undef STRIP_SPEED_COMPRESS_IPO_Y
518 for (
int i = 0; i < 3; i++) {
569 bmain,
"Realize Instances 2.93 Legacy",
"GeometryNodeTree");
596 *node_tree, *group_input, *group_input->
outputs.first(), *realize, *realize->
inputs.first());
598 *node_tree, *realize, *realize->
outputs.first(), *separate, *separate->
inputs.first());
616 *node_tree, *separate, *separate->
outputs.first(), *join, *join->
inputs.first());
618 *node_tree, *join, *join->
outputs.first(), *group_output, *group_output->
inputs.first());
630 char name_esc[(
sizeof(strip->name) - 2) * 2];
632 char *path =
BLI_sprintfN(
"sequence_editor.sequences_all[\"%s\"].pitch", name_esc);
634 if (fcu !=
nullptr) {
635 fcu->rna_path_set_move(
636 BLI_sprintfN(
"sequence_editor.sequences_all[\"%s\"].speed_factor", name_esc));
643 Scene *scene =
static_cast<Scene *
>(user_data);
652 const Scene *scene =
static_cast<const Scene *
>(user_data);
663 if (strip->pitch_legacy <= 0.0f) {
664 strip->pitch_legacy = 1.0f;
667 strip->speed_factor = strip->pitch_legacy;
670 strip->speed_factor = 1.0f;
698 static auto socket_remap = []() {
700 map.
add_new(
"Attribute",
"Value");
701 map.
add_new(
"Attribute_001",
"Value");
702 map.
add_new(
"Attribute_002",
"Value");
703 map.
add_new(
"Attribute_003",
"Value");
704 map.
add_new(
"Attribute_004",
"Value");
706 map.
add_new(
"Source Position",
"Sample Position");
729 if (old_geometry_socket->
link) {
744 if (old_geometry_socket->
link) {
751 static auto sample_nearest_remap = []() {
753 map.
add_new(
"Source Position",
"Sample Position");
758 static auto sample_index_remap = []() {
760 map.
add_new(
"Attribute",
"Value");
761 map.
add_new(
"Attribute_001",
"Value");
762 map.
add_new(
"Attribute_002",
"Value");
763 map.
add_new(
"Attribute_003",
"Value");
764 map.
add_new(
"Attribute_004",
"Value");
765 map.
add_new(
"Source Position",
"Sample Position");
783 sample_storage->
clamp = 1;
789 static auto socket_remap = []() {
791 map.
add_new(
"Attribute",
"Value");
792 map.
add_new(
"Attribute_001",
"Value");
793 map.
add_new(
"Attribute_002",
"Value");
794 map.
add_new(
"Attribute_003",
"Value");
795 map.
add_new(
"Attribute_004",
"Value");
796 map.
add_new(
"Source",
"Geometry");
802 if (!index_was_linked) {
806 index->locx_legacy =
node.locx_legacy - 25.0f;
807 index->locy_legacy =
node.locy_legacy - 25.0f;
846 uv_map_output_socket = &socket;
849 primitive_output_socket = &socket;
852 if (uv_map_output_socket !=
nullptr) {
859 "GeometryNodeStoreNamedAttribute");
860 new_nodes.
append(store_attribute_node);
864 auto &
storage = *MEM_new<NodeGeometryStoreNamedAttribute>(__func__);
872 ntree, *store_attribute_node,
SOCK_IN,
"NodeSocketGeometry",
"Geometry");
874 ntree, *store_attribute_node,
SOCK_IN,
"NodeSocketString",
"Name");
876 ntree, *store_attribute_node,
SOCK_IN,
"NodeSocketVector",
"Value");
878 ntree, *store_attribute_node,
SOCK_OUT,
"NodeSocketGeometry",
"Geometry");
880 if (link.
fromsock == primitive_output_socket) {
881 link.
fromnode = store_attribute_node;
882 link.
fromsock = &store_attribute_geometry_output;
894 *primitive_output_socket,
895 *store_attribute_node,
896 store_attribute_geometry_input);
898 ntree,
node, *uv_map_output_socket, *store_attribute_node, store_attribute_value_input);
937 in_links_per_socket.
add(link.
tosock, &link);
943 if (!geometry_in_link || geometry_out_links.
is_empty()) {
947 const bool versioning_already_done = [&]() {
963 *capture_node,
SOCK_IN,
"Value_003"_ustr);
965 if (!capture_in_link) {
971 if (geometry_out_links.
size() != 1) {
978 bNode *set_smooth_node = geometry_out_link->
tonode;
980 *set_smooth_node,
SOCK_IN,
"Shade Smooth"_ustr);
982 if (!connecting_link) {
985 if (connecting_link->
fromnode != capture_node) {
990 if (versioning_already_done) {
998 new_nodes.
append(&capture_node);
999 auto *capture_node_storage = MEM_new<NodeGeometryAttributeCapture>(__func__);
1000 capture_node.
storage = capture_node_storage;
1004 ntree, capture_node,
SOCK_IN,
"NodeSocketGeometry",
"Geometry");
1006 ntree, capture_node,
SOCK_OUT,
"NodeSocketGeometry",
"Geometry");
1008 ntree, capture_node,
SOCK_IN,
"NodeSocketBool",
"Value_003");
1010 ntree, capture_node,
SOCK_OUT,
"NodeSocketBool",
"Attribute_003");
1017 ntree, is_smooth_node,
SOCK_OUT,
"NodeSocketBool",
"Smooth");
1018 new_nodes.
append(&is_smooth_node);
1020 ntree, is_smooth_node, is_smooth_out, capture_node, capture_node_value_in);
1022 geometry_in_link->
tonode = &capture_node;
1023 geometry_in_link->
tosock = &capture_node_geo_in;
1030 new_nodes.
append(&set_smooth_node);
1032 ntree, set_smooth_node,
SOCK_IN,
"NodeSocketGeometry",
"Geometry");
1034 ntree, set_smooth_node,
SOCK_OUT,
"NodeSocketGeometry",
"Geometry");
1036 ntree, set_smooth_node,
SOCK_IN,
"NodeSocketBool",
"Shade Smooth");
1039 ntree,
node, *geometry_out_socket, set_smooth_node, set_smooth_node_geo_in);
1041 for (
bNodeLink *link : geometry_out_links) {
1043 link->
fromsock = &set_smooth_node_geo_out;
1047 capture_node_attribute_out,
1049 set_smooth_node_smooth_in);
1070 if (adt ==
nullptr || adt->
action ==
nullptr ||
1088 if (text.id.us == 0) {
1109 if (scene.
ed !=
nullptr) {
1123 if (imapaint->
canvas !=
nullptr &&
1126 imapaint->
canvas =
nullptr;
1128 if (imapaint->
stencil !=
nullptr &&
1133 if (imapaint->
clone !=
nullptr &&
1136 imapaint->
clone =
nullptr;
1198 bNodeTree *realize_instances_node_tree =
nullptr;
1204 if (md.next ==
nullptr) {
1220 if (realize_instances_node_tree ==
nullptr) {
1223 new_nmd->
node_group = realize_instances_node_tree;
1246 if (adt ==
nullptr) {
1296 if (timeline_region ==
nullptr) {
1310 if (
ed ==
nullptr) {
1333 const bool is_first_space = &sl == area.
spacedata.first_;
1336 if (region ==
nullptr) {
1376 if (&socket ==
node.inputs.first_) {
1382 char number_suffix[8];
1400 if (old_path ==
nullptr) {
1404 int len = strlen(old_path);
1410 new_path[
len - 1] =
'z';
1419 int index = (old_path[
len - 1] ==
'y' ? 2 : 0);
1438 MEM_delete(dtar->rna_path);
1439 dtar->rna_path = new_path;
1449 fcu->rna_path_set_move(new_path);
1455 for (
Bone &bone : *lb) {
1456 if (bone.flag & BONE_ADD_PARENT_END_ROLL) {
1460 copy_v3_fl3(bone.scale_in, bone.scale_in_x, 1.0f, bone.scale_in_z);
1461 copy_v3_fl3(bone.scale_out, bone.scale_out_x, 1.0f, bone.scale_out_z);
1473 if (
data->points ==
nullptr) {
1474 data->numpoints = 0;
1486 const float old_value = socket_value->
value;
1504 if (strip->
data->transform !=
nullptr) {
1513 if (strip->
data->transform !=
nullptr) {
1548 if (strstr(property.
name,
"_use_attribute") || strstr(property.
name,
"_attribute_name")) {
1558 if (strstr(property.
name,
"_use_attribute") || strstr(property.
name,
"_attribute_name")) {
1563 SNPRINTF(use_attribute_prop_name,
"%s%s", property.
name,
"_use_attribute");
1569 SNPRINTF(attribute_name_prop_name,
"%s%s", property.
name,
"_attribute_name");
1581 const float SAFE_THRESHOLD = 1.0e-5f;
1582 const float CRITICAL_THRESHOLD = 1.0e-9f;
1583 const float THRESHOLD_SQUARED = CRITICAL_THRESHOLD * CRITICAL_THRESHOLD;
1585 const float x = nor[0];
1586 const float y = nor[1];
1587 const float z = nor[2];
1589 const float theta = 1.0f +
y;
1590 const float theta_alt =
x *
x +
z *
z;
1591 float rMatrix[3][3], bMatrix[3][3];
1600 if (theta > SAFE_THRESHOLD || (theta > CRITICAL_THRESHOLD && theta_alt > THRESHOLD_SQUARED)) {
1609 if (theta > SAFE_THRESHOLD) {
1611 bMatrix[0][0] = 1 -
x *
x / theta;
1612 bMatrix[2][2] = 1 -
z *
z / theta;
1613 bMatrix[2][0] = bMatrix[0][2] = -
x *
z / theta;
1617 bMatrix[0][0] = (
x +
z) * (
x -
z) / -theta_alt;
1618 bMatrix[2][2] = -bMatrix[0][0];
1619 bMatrix[2][0] = bMatrix[0][2] = 2.0f *
x *
z / theta_alt;
1625 bMatrix[0][0] = bMatrix[1][1] = -1.0;
1636 const float tail[3],
1637 const float check_x_axis[3],
1638 const float check_y_axis[3],
1641 const float SAFE_THRESHOLD = 1.0e-5f;
1642 float vec[3], bone_mat[3][3], vec2[3];
1649 if (1.0f + vec[1] < SAFE_THRESHOLD * 2 && (vec[0] || vec[2])) {
1658 if (
dot_v3v3(bone_mat[0], check_x_axis) < 0.999f) {
1670 for (
Bone &bone : *lb) {
1676 bone.arm_head, bone.arm_tail, bone.arm_mat[0], bone.arm_mat[1], &bone.arm_roll);
1689 if (
node.inputs.count() < 4) {
1716 const bool offset_enabled =
1718 if (offset_enabled) {
1748 strip->startofs -= strip->startstill_legacy;
1749 strip->endofs -= strip->endstill_legacy;
1750 strip->startstill_legacy = 0;
1751 strip->endstill_legacy = 0;
1757 if ((strip->len == 1) && (strip->
type ==
STRIP_TYPE_IMAGE || !strip->is_effect_with_inputs())) {
1769 strip->speed_factor = 1.0f;
1773 if (strip->startofs < 0) {
1774 strip->startofs = 0.0f;
1799 opop.subitem_local_name,
1801 opop.subitem_local_index));
1802 bConstraint *constraint_src = constraint_anchor !=
nullptr ? constraint_anchor->
next :
1805 if (constraint_src ==
nullptr) {
1807 CLOG_ERROR(&
LOG,
"Could not find source constraint in stored override data");
1812 opop.subitem_reference_name = opop.subitem_local_name;
1814 opop.subitem_reference_index = opop.subitem_local_index;
1815 opop.subitem_local_index++;
1825 if (op !=
nullptr) {
1832 opop.subitem_local_name,
1834 opop.subitem_local_index));
1835 ModifierData *mod_src = mod_anchor !=
nullptr ? mod_anchor->
next :
object->modifiers.first();
1837 if (mod_src ==
nullptr) {
1839 CLOG_ERROR(&
LOG,
"Could not find source modifier in stored override data");
1844 opop.subitem_reference_name = opop.subitem_local_name;
1846 opop.subitem_reference_index = opop.subitem_local_index;
1847 opop.subitem_local_index++;
1852 if (op !=
nullptr) {
1859 opop.subitem_local_name,
1861 opop.subitem_local_index));
1863 gp_mod_anchor->
next :
1865 object->greasepencil_modifiers.first());
1867 if (gp_mod_src ==
nullptr) {
1869 CLOG_ERROR(&
LOG,
"Could not find source GP modifier in stored override data");
1874 opop.subitem_reference_name = opop.subitem_local_name;
1876 opop.subitem_reference_index = opop.subitem_local_index;
1877 opop.subitem_local_index++;
1882 if (op !=
nullptr) {
1886 if (
object->pose !=
nullptr) {
1889 char name_esc[
sizeof(pchan.
name) * 2];
1893 if (op !=
nullptr) {
1903 if (anim_data ==
nullptr) {
1911 if (op !=
nullptr) {
1941 data->clamp_factor = 1;
1954 if (format->view_settings.curve_mapping) {
1956 if (format != &scene.
r.
im_format &&
ELEM(format->view_settings.curve_mapping,
1961 format->view_settings.curve_mapping);
1967 if (format->view_settings.curve_mapping->cm[0].curve ==
nullptr) {
1969 format->view_settings.curve_mapping =
nullptr;
2003 "versioning: tool props region for file",
2037 "versioning: channels region for sequencer",
2042 "versioning: preview region for sequencer",
2056 const char *parent_rna_path,
2064 char name_esc_strip[
sizeof(strip->
name) * 2];
2067 const std::string rna_path_strip = std::string(parent_rna_path) +
".strips[\"" + name_esc_strip +
2071 const std::string rna_path_prop = rna_path_strip +
".frame_start";
2073 liboverride, rna_path_prop.c_str(), (rna_path_prop +
"_raw").c_str());
2077 const std::string rna_path_prop = rna_path_strip +
".frame_end";
2079 liboverride, rna_path_prop.c_str(), (rna_path_prop +
"_raw").c_str());
2083 const std::string rna_path_prop = rna_path_strip +
".frame_start_ui";
2088 const std::string rna_path_prop = rna_path_strip +
".frame_end_ui";
2106 for (
const auto [track_index, track] : adt->
nla_tracks.enumerate()) {
2107 char *rna_path_track =
BLI_sprintfN(
"animation_data.nla_tracks[%d]", track_index);
2113 MEM_delete(rna_path_track);
2126 if (!DNA_struct_member_exists(fd->
filesdna,
"MirrorModifierData",
"float",
"bisect_threshold"))
2139 if (!DNA_struct_member_exists(fd->
filesdna,
"BrushGpencilSettings",
"int",
"dilate_pixels")) {
2141 if (
brush.gpencil_settings) {
2142 brush.gpencil_settings->dilate_pixels = 1;
2151 if (!DNA_struct_member_exists(fd->
filesdna,
"bPoseChannel",
"float",
"custom_scale_xyz[3]")) {
2153 if (ob.
pose ==
nullptr) {
2173 if (new_sidebar !=
nullptr) {
2201 if (!DNA_struct_member_exists(fd->
filesdna,
"FileAssetSelectParams",
"short",
"import_method"))
2218 if (!DNA_struct_member_exists(fd->
filesdna,
"Bone",
"int",
"bbone_flag")) {
2259 if (spreadsheet_dataset_region) {
2286 tool_settings->
snap_flag |= SCE_SNAP_SEQ;
2287 short snap_mode = tool_settings->
snap_mode;
2293 if (snap_mode & (1 << 4)) {
2296 if (snap_mode & (1 << 5)) {
2299 if (snap_mode & (1 << 6)) {
2302 if (snap_node_mode & (1 << 5)) {
2305 if (snap_node_mode & (1 << 6)) {
2308 if (snap_uv_mode & (1 << 4)) {
2359 mat.lineart.mat_occlusion = 1;
2366 if (!DNA_struct_member_exists(
2367 fd->
filesdna,
"SurfaceDeformModifierData",
"int",
"mesh_verts_num"))
2395 if (!DNA_struct_member_exists(
2396 fd->
filesdna,
"WorkSpace",
"AssetLibraryReference",
"asset_library"))
2403 if (!DNA_struct_member_exists(
2404 fd->
filesdna,
"FileAssetSelectParams",
"AssetLibraryReference",
"asset_library_ref"))
2431 tool_settings->
snap_flag &= ~SCE_SNAP_SEQ;
2455 if (!DNA_struct_member_exists(
2456 fd->
filesdna,
"View3DOverlay",
"float",
"normals_constant_screen_size"))
2522 if (!DNA_struct_member_exists(
2523 fd->
filesdna,
"WorkSpace",
"AssetLibraryReference",
"asset_library_ref"))
2530 if (!DNA_struct_member_exists(
2531 fd->
filesdna,
"FileAssetSelectParams",
"AssetLibraryReference",
"asset_library_ref"))
2590 if (
STREQ(link.tosock->identifier,
"Size") && link.tosock->type ==
SOCK_FLOAT) {
2591 bNode *link_fromnode = link.fromnode;
2597 &ntree,
node, socket);
2618 if (!DNA_struct_member_exists(
2619 fd->
filesdna,
"LineartGpencilModifierData",
"bool",
"use_crease_on_smooth"))
2654 const int sseq_flag = int(sseq->
flag);
2655 const int sseq_draw_flag = int(sseq->
draw_flag);
2667 seq_show_safe_margins | seq_show_gpencil | seq_show_safe_center |
2670 seq_show_fcurves | seq_show_strip_name | seq_show_strip_source |
2671 seq_show_strip_duration | seq_show_grid | show_strip_offset);
2683 if (scene.
ed !=
nullptr) {
2704 for (
ARegion ®ion : *regionbase) {
2706 region.v2d.min[1] = 4.0f;
2726 R_EXR_TILE_FILE = (1 << 10),
2727 R_FULL_SAMPLE = (1 << 15),
2730 scene.
r.
scemode &= ~(R_EXR_TILE_FILE | R_FULL_SAMPLE);
2795 for (
ARegion ®ion : *regionbase) {
2815 ARegion *region_tool =
nullptr, *region_head =
nullptr;
2816 int region_tool_index = -1, region_head_index = -1;
2817 for (
const auto [i, region] : (regionbase)->enumerate()) {
2819 region_tool = ®ion;
2820 region_tool_index = i;
2823 region_head = ®ion;
2824 region_head_index = i;
2827 if ((region_tool && region_head) && (region_head_index > region_tool_index)) {
2836 if (scene.
ed !=
nullptr) {
2855 if (scene.
ed !=
nullptr) {
2869 if (sseq->
mainb == SEQ_DRAW_SEQUENCE) {
2915 if (!DNA_struct_exists(fd->
filesdna,
"SpaceNodeOverlay")) {
2948 wm.xr.session_settings.base_scale = 1.0f;
2972 if (
node.storage ==
nullptr) {
3025 for (
ARegion ®ion : *regionbase) {
3027 region.v2d.min[1] = 1.0f;
3042 for (
ARegion ®ion : *regionbase) {
3044 region.v2d.minzoom = std::min(region.v2d.minzoom, 0.05f);
3064 if (id_iter->id_type() ==
ID_OB) {
3097 if (
node.storage ==
nullptr) {
3126 if (
node.storage ==
nullptr) {
3130 data->interpolation_type =
node.custom2;
3145 for (
ARegion ®ion : *regionbase) {
3171 if (!DNA_struct_member_exists(fd->
filesdna,
"View3DOverlay",
"float",
"bone_wire_alpha")) {
3218 if (scene.
ed !=
nullptr) {
3228 if (tool_settings->
snap_flag & SCE_SNAP_SEQ) {
3230 tool_settings->
snap_flag &= ~SCE_SNAP_SEQ;
3278 if (gpmd->
step == 1 && gpmd->
factor <= 0.5f) {
3284 gpmd->
step + 2.0f)));
3324 else if (vact2 != -1) {
3367 if (
brush.curves_sculpt_settings !=
nullptr) {
3370 brush.curves_sculpt_settings = MEM_new<BrushCurvesSculptSettings>(__func__);
3371 brush.curves_sculpt_settings->add_amount = 1;
3413 if (timeline_region !=
nullptr) {
3423 if (
ed ==
nullptr) {
3479 else if (vact2 != -1) {
3532 if (
node.storage ==
nullptr) {
3566 if (settings ==
nullptr) {
3575 if (!DNA_struct_member_exists(fd->
filesdna,
"Sculpt",
"float",
"automasking_cavity_factor")) {
3596 if (
brush.curves_sculpt_settings->points_per_curve == 0) {
3597 brush.curves_sculpt_settings->points_per_curve = 8;
3602 if (!DNA_struct_member_exists(fd->
filesdna,
"ImagePackedFile",
"int",
"tile_number")) {
3605 for (
const auto [view, imapf] : ima.packedfiles.enumerate()) {
3607 imapf.tile_number = 1001;
3615 if (
ed !=
nullptr) {
3628 switch (
storage->spline_type) {
3663 (
reinterpret_cast<SpaceClip *
>(&sl))->mask_info.blend_factor = 1.0;
3738 if (channels_region) {
3739 MEM_delete(channels_region->
runtime);
3753 brush.curves_sculpt_settings->density_add_attempts = 100;
3769 if (!DNA_struct_member_exists(fd->
filesdna,
"ImageTile",
"int",
"gen_x")) {
3772 tile.gen_x = ima.gen_x;
3773 tile.gen_y = ima.gen_y;
3774 tile.gen_type = ima.gen_type;
3775 tile.gen_flag = ima.gen_flag;
3776 tile.gen_depth = ima.gen_depth;
3790 int *face_sets =
static_cast<int *
>(
3793 for (
int i = 0; i <
mesh.faces_num; i++) {
3794 face_sets[i] =
abs(face_sets[i]);
3819 brush.automasking_cavity_factor = 0.5f;
3855 brush.automasking_cavity_factor = 1.0f;
3868 for (
ARegion ®ion : *regionbase) {
3927 if (!DNA_struct_member_exists(fd->
filesdna,
"Image",
"short",
"seam_margin")) {
3929 image.seam_margin = 8;
3955 light.radius = light.area_size;
3959 if (!DNA_struct_member_exists(
3960 fd->
filesdna,
"BuildGpencilModifierData",
"float",
"speed_fac") ||
3961 !DNA_struct_member_exists(
3962 fd->
filesdna,
"BuildGpencilModifierData",
"float",
"speed_maxgap"))
3977 const int CV_SCULPT_SELECTION_ENABLED = (1 << 1);
3979 curves_id.flag &=
~eCurves_Flag(CV_SCULPT_SELECTION_ENABLED);
3989 bool after_armature =
false;
4001 after_armature =
false;
4005 after_armature =
true;
4013 after_armature =
false;
4029 node.custom2 =
true;
4055 if (!DNA_struct_member_exists(fd->
filesdna,
"SceneEEVEE",
"int",
"shadow_pool_size")) {
4076 if (
brush.curves_sculpt_settings->curve_parameter_falloff ==
nullptr) {
4078 1, 0.0f, 0.0f, 1.0f, 1.0f);
4086 if (!DNA_struct_member_exists(fd->
filesdna,
"View3DOverlay",
"float",
"retopology_offset")) {
4103 if (
ed !=
nullptr) {
4125 const ListBaseT<ARegion> *regionbase = (&sl == area.
spacedata.first_) ?
4147 const char *tool_replace_table[][2] = {
4148 {
"selection_paint",
"Paint Selection"},
4150 {
"delete",
"Delete"},
4151 {
"density",
"Density"},
4153 {
"snake_hook",
"Snake Hook"},
4154 {
"grow_shrink",
"Grow / Shrink"},
4198 if (
ed !=
nullptr) {
4232 short snap_mode_geom = (1 << 0) | (1 << 1) | (1 << 2) | (1 << 4) | (1 << 5);
4246 const ListBaseT<ARegion> *regionbase = (&sl == area.
spacedata.first_) ?
Versioning of old animation data. Most animation versioning code lives in the versioning_xxx....
Blender kernel action and pose functionality.
Generic geometry attributes built on CustomData.
#define BKE_SCENE_COLLECTION_NAME
Low-level operations for curves.
CustomData interface, see also DNA_customdata_types.h.
#define DRIVER_TARGETS_LOOPER_BEGIN(dvar)
#define DRIVER_TARGETS_LOOPER_END
#define IDP_array_double_get(prop)
#define IDP_string_get(prop)
#define IDP_array_int_get(prop)
#define IDP_array_float_get(prop)
#define FOREACH_MAIN_ID_END
#define MAIN_VERSION_FILE_ATLEAST(main, ver, subver)
#define FOREACH_MAIN_LISTBASE_END
#define FOREACH_MAIN_LISTBASE_BEGIN(_bmain, _lb)
#define FOREACH_MAIN_ID_BEGIN(_bmain, _id)
#define NODE_GROUP_OUTPUT
#define FOREACH_NODETREE_END
#define FOREACH_NODETREE_BEGIN(bmain, _nodetree, _id)
#define GEO_NODE_SET_POSITION
#define GEO_NODE_MERGE_BY_DISTANCE
#define GEO_NODE_TRIANGULATE
#define GEO_NODE_SET_CURVE_HANDLES
#define GEO_NODE_MESH_PRIMITIVE_ICO_SPHERE
#define GEO_NODE_SUBDIVISION_SURFACE
#define SH_NODE_MIX_RGB_LEGACY
#define GEO_NODE_CURVE_SPLINE_PARAMETER
#define GEO_NODE_MESH_PRIMITIVE_CIRCLE
#define GEO_NODE_SAMPLE_NEAREST_SURFACE
#define GEO_NODE_SEPARATE_COMPONENTS
#define GEO_NODE_POINTS_TO_VERTICES
#define GEO_NODE_BOUNDING_BOX
#define GEO_NODE_SUBDIVIDE_MESH
#define SH_NODE_BSDF_PRINCIPLED
#define GEO_NODE_SET_POINT_RADIUS
#define GEO_NODE_SET_CURVE_TILT
#define SH_NODE_SUBSURFACE_SCATTERING
#define GEO_NODE_OFFSET_POINT_IN_CURVE
#define SH_NODE_MAP_RANGE
#define GEO_NODE_INPUT_MESH_ISLAND
#define GEO_NODE_MESH_PRIMITIVE_CUBE
#define GEO_NODE_DISTRIBUTE_POINTS_ON_FACES
#define GEO_NODE_MESH_PRIMITIVE_CONE
#define GEO_NODE_REPLACE_MATERIAL
#define GEO_NODE_REVERSE_CURVE
#define GEO_NODE_MESH_BOOLEAN
#define GEO_NODE_TRANSLATE_INSTANCES
#define GEO_NODE_MESH_PRIMITIVE_LINE
#define GEO_NODE_TRIM_CURVE
#define CMP_NODE_LENSDIST
#define GEO_NODE_FILLET_CURVE
#define GEO_NODE_MESH_PRIMITIVE_CYLINDER
#define GEO_NODE_CURVE_SPLINE_TYPE
#define GEO_NODE_MESH_PRIMITIVE_UV_SPHERE
#define GEO_NODE_SUBDIVIDE_CURVE
#define GEO_NODE_MESH_PRIMITIVE_GRID
#define GEO_NODE_SPLIT_EDGES
#define CMP_NODE_OUTPUT_FILE
#define GEO_NODE_ROTATE_INSTANCES
#define GEO_NODE_INPUT_MESH_EDGE_ANGLE
#define GEO_NODE_REALIZE_INSTANCES
#define GEO_NODE_RESAMPLE_CURVE
#define GEO_NODE_INPUT_INDEX
#define GEO_NODE_SAMPLE_CURVE
#define GEO_NODE_CAPTURE_ATTRIBUTE
#define GEO_NODE_FILL_CURVE
#define GEO_NODE_CURVE_LENGTH
#define GEO_NODE_CURVE_TO_MESH
#define GEO_NODE_STRING_TO_CURVES
#define GEO_NODE_POINTS_TO_VOLUME
#define GEO_NODE_SAMPLE_INDEX
#define GEO_NODE_COLLECTION_INFO
#define GEO_NODE_TRANSFER_ATTRIBUTE_DEPRECATED
#define GEO_NODE_SET_MATERIAL
#define GEO_NODE_SCALE_INSTANCES
#define GEO_NODE_SET_CURVE_RADIUS
#define GEO_NODE_CONVEX_HULL
#define GEO_NODE_JOIN_GEOMETRY
#define GEO_NODE_SAMPLE_NEAREST
#define FN_NODE_SLICE_STRING
#define BLI_ASSERT_UNIT_V3(v)
#define SNPRINTF(dst, format,...)
#define SNPRINTF_UTF8(dst, format,...)
#define STRNCPY_UTF8(dst, src)
#define BLI_string_join(...)
external readfile function prototypes.
#define CLOG_ERROR(clg_ref,...)
#define ID_IS_OVERRIDE_LIBRARY_REAL(_id)
#define ID_IS_LINKED(_id)
Object groups, one object can be in many groups at once.
blenloader genfile private function prototypes
These structs are the foundation for all linked lists in the library system.
#define FILE_SELECT_MAX_RECURSIONS
Read Blender memory allocation and freeing.
#define BLI_assert_unreachable()
#define UNUSED_VARS_NDEBUG(...)
SIMD_FORCE_INLINE const btScalar & z() const
Return the z value.
btSequentialImpulseConstraintSolverMt int btPersistentManifold int btTypedConstraint ** constraints
static AttributeOwner from_id(ID *id)
bool add(const Key &key, const Value &value)
Value lookup_default(const Key &key, const Value &default_value) const
void add_new(const Key &key, const Value &value)
Span< Value > lookup(const Key &key) const
void add(const Key &key, const Value &value)
constexpr const T & first() const
constexpr int64_t size() const
constexpr bool is_empty() const
void append(const T &value)
const T & data(const Action &owning_action) const
@ DENOISER_OPENIMAGEDENOISE
#define storage(slot, qualifiers)
VecBase< float, D > step(VecOp< float, D >, VecOp< float, D >) RET
const ccl_global KernelWorkTile * tile
ccl_device_inline dual1 len(const ccl_private dual< T > &a)
void action_groups_reconstruct(bAction *act)
std::unique_ptr< IDProperty, IDPropertyDeleter > create(StringRef prop_name, int32_t value, eIDPropertyFlag flags={})
Allocate a new IDProperty of type IDP_INT, set its name and value.
void node_remove_node(Main *bmain, bNodeTree &ntree, bNode &node, bool do_id_user, bool remove_animation=true)
void node_remove_socket(bNodeTree &ntree, bNode &node, bNodeSocket &sock)
void node_tree_set_type(bNodeTree &ntree)
bool node_set_selected(bNode &node, bool select)
bNodeSocket * node_add_socket(bNodeTree &ntree, bNode &node, eNodeSocketInOut in_out, StringRefNull idname, StringRefNull identifier, StringRefNull name)
void node_rebuild_id_vector(bNodeTree &node_tree)
bNode * node_add_static_node(const bContext *C, bNodeTree &ntree, int type)
bNodeLink & node_add_link(bNodeTree &ntree, bNode &fromnode, bNodeSocket &fromsock, bNode &tonode, bNodeSocket &tosock)
bNodeTree * node_tree_add_tree(Main *bmain, StringRef name, StringRef idname)
bNodeSocket * node_add_static_socket(bNodeTree &ntree, bNode &node, eNodeSocketInOut in_out, int type, int subtype, StringRefNull identifier, StringRefNull name)
bNodeSocket * node_find_socket(bNode &node, eNodeSocketInOut in_out, UString identifier)
std::optional< StringRefNull > node_static_socket_type(int type, int subtype, std::optional< int > dimensions=std::nullopt)
void channels_ensure(ListBaseT< SeqTimelineChannel > *channels)
void foreach_strip(ListBaseT< Strip > *seqbase, ForEachFunc callback, void *user_data)
Editing * editing_get(const Scene *scene)
void retiming_data_clear(Strip *strip)
constexpr int MAX_CHANNELS
void time_update_meta_strip_range(const Scene *scene, Strip *strip_meta)
SequencerToolSettings * tool_settings_ensure(Scene *scene)
bool version_node_ensure_storage_or_invalidate(bNode &node)
@ V3D_OVERLAY_SCULPT_SHOW_MASK
@ V3D_OVERLAY_FADE_INACTIVE
@ V3D_OVERLAY_VIEWER_ATTRIBUTE
@ V3D_OVERLAY_SCULPT_SHOW_FACE_SETS
@ V3D_OVERLAY_SCULPT_CURVES_CAGE
static void do_versions_idproperty_bones_recursive(Bone *bone)
MINLINE float min_ff(float a, float b)
CurveMapping * BKE_curvemapping_add(int tot, float minx, float miny, float maxx, float maxy)
static void version_geometry_nodes_primitive_uv_maps(bNodeTree &ntree)
static void version_liboverride_nla_frame_start_end(ID *id, AnimData *adt)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
int char char int BLI_strcasecmp(const char *s1, const char *s2) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
void IDP_FreeFromGroup(IDProperty *group, IDProperty *prop) ATTR_NONNULL()
void node_tree_relink_with_socket_id_map(bNodeTree &ntree, bNode &old_node, bNode &new_node, const Map< std::string, std::string > &map)
float IDP_coerce_to_float_or_zero(const IDProperty *prop)
@ SO_FILTER_NO_VIEW_LAYERS
@ DT_MULTILAYER_INDEX_MAX
@ eGpencilModifierType_Lineart
@ eGpencilModifierType_Smooth
@ eGpencilModifierType_Build
static void version_switch_node_input_prefix(Main *bmain)
@ FILE_ASSET_IMPORT_FOLLOW_PREFS
@ FILE_ASSET_IMPORT_APPEND_REUSE
@ FILE_ASSET_IMPORT_APPEND
CurveMapping * BKE_curvemapping_copy(const CurveMapping *cumap)
void version_node_socket_id_delim(bNodeSocket *socket)
@ COLORMANAGE_VIEW_USE_CURVES
ListBaseT< bDeformGroup > * BKE_object_defgroup_list_mutable(Object *ob)
eSpaceSeq_SequencerTimelineOverlay_Flag
@ SEQ_TIMELINE_SHOW_STRIP_OFFSETS
@ SEQ_TIMELINE_SHOW_STRIP_DURATION
@ SEQ_TIMELINE_SHOW_STRIP_NAME
@ SEQ_TIMELINE_SHOW_FCURVES
@ SEQ_TIMELINE_SHOW_STRIP_SOURCE
@ SEQ_TIMELINE_SHOW_STRIP_COLOR_TAG
@ SPREADSHEET_FILTER_ENABLE
void vec_roll_to_mat3(const float vec[3], float roll, float r_mat[3][3])
void sequencer_init_preview_region(ARegion *region)
void BKE_id_attributes_default_color_set(struct ID *id, std::optional< StringRef > name)
MINLINE float safe_sqrtf(float a)
static void version_geometry_nodes_set_position_node_offset(bNodeTree *ntree)
bool BKE_lib_override_library_is_user_edited(const ID *id)
void * MEM_new_array_uninitialized(size_t len, size_t size, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1
@ V2D_VIEWSYNC_AREA_VERTICAL
void BLI_addhead(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void mat3_to_vec_roll(const float mat[3][3], float r_vec[3], float *r_roll)
static void versioning_replace_legacy_mix_rgb_node(bNodeTree *ntree)
static bool version_set_seq_single_frame_content(Strip *strip, void *)
static void do_versions_idproperty_seq_recursive(ListBaseT< Strip > *seqbase)
@ CONSTRAINT_TYPE_SPLINEIK
int bool bool BLI_str_endswith(const char *__restrict str, const char *__restrict end) ATTR_NONNULL(1
static bool strip_transform_filter_set(Strip *strip, void *)
double IDP_coerce_to_double_or_zero(const IDProperty *prop)
@ NLASTRIP_EXTEND_HOLD_FORWARD
bool IDP_AddToGroup(IDProperty *group, IDProperty *prop) ATTR_NONNULL()
@ BBONE_ADD_PARENT_END_ROLL
@ OB_FLAG_USE_SIMULATION_CACHE
void BKE_fmodifier_name_set(FModifier *fcm, const char *name)
IDProperty * IDP_GetPropertyFromGroup(const IDProperty *prop, StringRef name) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
static void version_geometry_nodes_replace_transfer_attribute_node(bNodeTree *ntree)
const EnumPropertyItem rna_enum_property_subtype_items[]
@ eModifierType_DataTransfer
@ eModifierType_MeshDeform
@ eModifierType_WeightVGProximity
@ eModifierType_SurfaceDeform
static void version_liboverride_rnacollections_insertion_object(Object *object)
@ V3D_AROUND_CENTER_MEDIAN
char * BLI_strncpy_utf8(char *__restrict dst, const char *__restrict src, size_t dst_maxncpy) ATTR_NONNULL(1
static void version_node_tree_socket_id_delim(bNodeTree *ntree)
void BKE_animdata_main_cb(struct Main *bmain, FunctionRef< void(ID *, AnimData *)> func)
char * BLI_sprintfN(const char *__restrict format,...) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) ATTR_MALLOC ATTR_PRINTF_FORMAT(1
int IDP_coerce_to_int_or_zero(const IDProperty *prop)
@ V3D_OFSDRAW_SHOW_SELECTION
@ V3D_OFSDRAW_XR_SHOW_CONTROLLERS
@ V3D_OFSDRAW_XR_SHOW_CUSTOM_OVERLAYS
static void do_version_bones_roll(ListBaseT< Bone > *lb)
void void void BLI_movelisttolist(ListBase *dst, ListBase *src) ATTR_NONNULL(1
static void version_geometry_nodes_add_realize_instance_nodes(bNodeTree *ntree)
@ FILE_BROWSE_MODE_ASSETS
ARegion * do_versions_add_region(int regiontype, const char *)
char * BLI_strdupn(const char *str, size_t len) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
ATTR_WARN_UNUSED_RESULT const BMVert * v
@ SEQ_VIEW_SEQUENCE_PREVIEW
@ SI_OVERLAY_SHOW_GRID_BACKGROUND
static void move_vertex_group_names_to_object_data(Main *bmain)
void BKE_object_defgroup_active_index_set(Object *ob, int new_index)
void BKE_main_id_repair_duplicate_names_listbase(Main *bmain, ListBaseT< ID > *lb)
void BKE_curvemapping_free(CurveMapping *cumap)
eIDPropertyUIDataType IDP_ui_data_type(const IDProperty *prop)
void id_fake_user_set(ID *id)
@ LIBOVERRIDE_OP_INSERT_AFTER
int CustomData_get_active_layer_index(const CustomData *data, eCustomDataType type)
static void version_geometry_nodes_extrude_smooth_propagation(bNodeTree &ntree)
bNode & version_node_add_empty(bNodeTree &ntree, const char *idname)
@ LIBOVERRIDE_FLAG_SYSTEM_DEFINED
static void assert_sorted_ids(Main *bmain)
void blo_do_versions_300(FileData *fd, Library *lib, Main *bmain)
bool BKE_attribute_rename(AttributeOwner &owner, StringRef old_name, StringRef new_name, struct ReportList *reports)
@ SCULPT_BRUSH_TYPE_SMEAR
void BKE_nurb_knot_calc_v(Nurb *nu)
int version_cycles_property_int(IDProperty *idprop, const char *name, int default_value)
static IDProperty * idproperty_find_ui_container(IDProperty *idprop_group)
void version_socket_update_is_used(bNodeTree *ntree)
@ TIME_CACHE_SIMULATION_NODES
bool RNA_enum_value_from_id(const EnumPropertyItem *item, const char *identifier, int *r_value)
@ SEQ_COLOR_BALANCE_METHOD_LIFTGAMMAGAIN
void BKE_modifier_unique_name(ListBaseT< ModifierData > *modifiers, ModifierData *md)
void version_node_output_socket_name(bNodeTree *ntree, const int node_type, const char *old_name, const char *new_name)
static void version_idproperty_move_data_string(IDPropertyUIDataString *ui_data, const IDProperty *prop_ui_data)
static void sort_linked_ids(Main *bmain)
void id_sort_by_name(ListBaseT< ID > *lb, ID *id, ID *id_sorting_hint)
AnimData * BKE_animdata_from_id(const ID *id)
@ SCE_EEVEE_SHADOW_ENABLED
void version_node_socket_identifier_set(bNodeSocket &socket, const StringRefNull identifier)
void * BLI_findlink(const ListBase *listbase, int number) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
static bNodeSocket * do_version_replace_float_size_with_vector(bNodeTree *ntree, bNode *node, bNodeSocket *socket)
void BLI_uniquename(const ListBase *list, void *vlink, const char *defname, char delim, int name_offset, size_t name_maxncpy) ATTR_NONNULL(1
static void do_versions_sequencer_speed_effect_recursive(Scene *scene, const ListBaseT< Strip > *seqbase)
@ GEO_NODE_ATTRIBUTE_TRANSFER_NEAREST
@ GEO_NODE_ATTRIBUTE_TRANSFER_NEAREST_FACE_INTERPOLATED
@ GEO_NODE_ATTRIBUTE_TRANSFER_INDEX
ID * do_versions_rename_id(Main *bmain, const short id_type, const char *name_src, const char *name_dst)
bool BKE_nlatrack_has_strips(ListBaseT< NlaTrack > *tracks)
@ MOD_WVG_PROXIMITY_INVERT_VGROUP_MASK
@ MOD_WVG_PROXIMITY_WEIGHTS_NORMALIZE
static void do_version_subsurface_methods(bNode *node)
void BLI_remlink(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
BMesh const char void * data
void BLI_insertlinkafter(ListBase *listbase, void *vprevlink, void *vnewlink) ATTR_NONNULL(1)
static bool do_versions_sequencer_color_balance_sop(Strip *strip, void *)
ModifierData * BKE_modifier_new(int type)
IDProperty * version_cycles_visibility_properties_from_ID(ID *id)
char char size_t BLI_str_escape(char *__restrict dst, StringRef src, size_t dst_maxncpy) ATTR_NONNULL(1)
bool BKE_main_namemap_validate_and_fix(Main &bmain)
eSpaceSeq_SequencerPreviewOverlay_Flag
@ SEQ_PREVIEW_SHOW_SAFE_CENTER
@ SEQ_PREVIEW_SHOW_METADATA
@ SEQ_PREVIEW_SHOW_OUTLINE_SELECTED
@ SEQ_PREVIEW_SHOW_GPENCIL
@ SEQ_PREVIEW_SHOW_SAFE_MARGINS
IDProperty * IDP_GetProperties(ID *id) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void version_node_id(bNodeTree *ntree, const int node_type, const char *new_name)
static void version_liboverride_rnacollections_insertion_animdata(ID *id)
static void do_versions_idproperty_ui_data(Main *bmain)
void BLI_listbase_swaplinks(ListBase *listbase, void *vlinka, void *vlinkb) ATTR_NONNULL(1
void version_cycles_property_int_set(IDProperty *idprop, const char *name, int value)
@ FILE_PARAMS_FLAG_UNUSED_3
@ FILE_PARAMS_FLAG_UNUSED_1
@ FILE_PARAMS_FLAG_UNUSED_2
static void do_version_bones_bbone_len_scale(ListBaseT< Bone > *lb)
static bool strip_transform_origin_set(Strip *strip, void *)
void BLI_freelinkN(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
constexpr size_t ARRAY_SIZE(const T(&arg)[N]) noexcept
@ SEQ_USE_EFFECT_DEFAULT_FADE
@ SEQ_SINGLE_FRAME_CONTENT
void BKE_lib_override_library_property_operation_delete(IDOverrideLibraryProperty *liboverride_property, IDOverrideLibraryPropertyOperation *liboverride_property_operation)
void BKE_asset_library_reference_init_default(AssetLibraryReference *library_ref)
IDOverrideLibraryProperty * BKE_lib_override_library_property_find(IDOverrideLibrary *liboverride, const char *rna_path)
static void version_liboverride_nla_strip_frame_start_end(IDOverrideLibrary *liboverride, const char *parent_rna_path, NlaStrip *strip)
const void * CustomData_get_layer(const CustomData *data, eCustomDataType type)
static bool do_versions_sequencer_color_tags(Strip *strip, void *)
ARegion * do_versions_ensure_region(ListBaseT< ARegion > *regionbase, int region_type, const char *, int link_after_region_type)
bool BKE_lib_override_library_property_search_and_delete(IDOverrideLibrary *liboverride, const char *rna_path)
@ ITASC_TRANSLATE_ROOT_BONES
@ GEO_NODE_EXTRUDE_MESH_EDGES
void BKE_image_ensure_tile_token(char *filepath, size_t filepath_maxncpy)
static void legacy_vec_roll_to_mat3_normalized(const float nor[3], const float roll, float r_mat[3][3])
static char * replace_bbone_len_scale_rnapath(const char *old_path, int *p_index)
@ GEO_NODE_MERGE_BY_DISTANCE_MODE_ALL
static bool version_fix_seq_meta_range(Strip *strip, void *user_data)
static void version_nla_action_strip_hold(Main *bmain)
ARegion * BKE_region_find_in_listbase_by_type(const ListBaseT< ARegion > *regionbase, const int region_type)
static void version_fix_image_format_copy(Main *bmain, ImageFormatData *format)
MINLINE float normalize_v3(float n[3])
bool version_cycles_property_boolean(IDProperty *idprop, const char *name, bool default_value)
static bNodeTree * add_realize_node_tree(Main *bmain)
MINLINE void sub_v3_v3v3(float r[3], const float a[3], const float b[3])
void void * BLI_listbase_string_or_index_find(const ListBase *listbase, const char *string, size_t string_offset, int index) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
MINLINE bool compare_v3v3(const float v1[3], const float v2[3], float limit) ATTR_WARN_UNUSED_RESULT
MINLINE void copy_v3_fl3(float v[3], float x, float y, float z)
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void unit_m3(float m[3][3])
char * BLI_strdup(const char *str) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) ATTR_MALLOC
MINLINE void copy_v3_fl(float r[3], float f)
@ SHD_SUBSURFACE_RANDOM_WALK_SKIN
@ SHD_SUBSURFACE_RANDOM_WALK_LEGACY
static void version_geometry_nodes_add_attribute_input_settings(NodesModifierData *nmd)
bool BLI_path_extension_check(const char *path, const char *ext) ATTR_NONNULL(1
char * BLI_string_replaceN(const char *__restrict str, const char *__restrict substr_old, const char *__restrict substr_new) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
int CustomData_get_render_layer_index(const CustomData *data, eCustomDataType type)
bool BKE_lib_override_library_property_rna_path_change(IDOverrideLibrary *liboverride, const char *old_rna_path, const char *new_rna_path)
MINLINE float max_ff(float a, float b)
static bool strip_meta_channels_ensure(Strip *strip, void *)
void BKE_id_attributes_active_color_set(struct ID *id, std::optional< StringRef > name)
void version_node_input_socket_name(bNodeTree *ntree, const int node_type, const char *old_name, const char *new_name)
void void BKE_workspace_tool_id_replace_table(WorkSpace *workspace, const int space_type, const int mode, const char *idname_prefix_skip, const char *replace_table[][2], int replace_table_num) ATTR_NONNULL(1
IDProperty * version_cycles_properties_from_ID(ID *id)
@ SEQ_SNAP_TO_CURRENT_FRAME
FCurve * id_data_find_fcurve(ID *id, void *data, StructRNA *type, const char *prop_name, int index, bool *r_driven)
static void version_idproperty_move_data_float(IDPropertyUIDataFloat *ui_data, const IDProperty *prop_ui_data)
static void correct_bone_roll_value(const float head[3], const float tail[3], const float check_x_axis[3], const float check_y_axis[3], float *r_roll)
@ SEQ_TRANSFORM_FILTER_BILINEAR
MINLINE void copy_v4_v4(float r[4], const float a[4])
static void version_liboverride_rnacollections_insertion_object_constraints(ListBaseT< bConstraint > *constraints, IDOverrideLibraryProperty *op)
@ SCE_SNAP_TO_INCLUDE_EDITED
@ SCE_SNAP_TO_INCLUDE_NONEDITED
ARegion * do_versions_add_region_if_not_found(ListBaseT< ARegion > *regionbase, int region_type, const char *, int link_after_region_type)
static void strip_speed_factor_fix_rna_path(Strip *strip, ListBaseT< FCurve > *fcurves)
@ RGN_FLAG_HIDDEN_BY_USER
@ NODE_INTERFACE_SOCKET_OUTPUT
@ NODE_INTERFACE_SOCKET_INPUT
void mul_m3_m3m3(float R[3][3], const float A[3][3], const float B[3][3])
FCurve * BKE_fcurve_find(ListBaseT< FCurve > *list, const char rna_path[], int array_index)
void BKE_nurb_knot_calc_u(Nurb *nu)
@ MOD_LINEART_USE_CREASE_ON_SMOOTH_SURFACES
static void version_idproperty_ui_data(IDProperty *idprop_group)
void version_node_socket_index_animdata(Main *bmain, const int node_tree_type, const int node_type, const int socket_index_orig, const int socket_index_offset, const int total_number_of_sockets)
void add_realize_instances_before_socket(bNodeTree *ntree, bNode *node, bNodeSocket *geometry_socket)
IDPropertyUIData * IDP_ui_data_ensure(IDProperty *prop)
void axis_angle_normalized_to_mat3(float R[3][3], const float axis[3], float angle)
@ eSeqModifierType_ColorBalance
MINLINE float dot_v3v3(const float a[3], const float b[3]) ATTR_WARN_UNUSED_RESULT
@ IDP_UI_DATA_TYPE_STRING
@ IDP_UI_DATA_TYPE_UNSUPPORTED
@ IDP_UI_DATA_TYPE_BOOLEAN
static void do_version_bbone_len_scale_fcurve_fix(FCurve *fcu)
static bool strip_speed_factor_set(Strip *strip, void *user_data)
bool IDP_ui_data_supported(const IDProperty *prop)
static void version_ensure_missing_regions(ScrArea *area, SpaceLink *sl)
bNodeLink & version_node_add_link(bNodeTree &ntree, bNode &node_a, bNodeSocket &socket_a, bNode &node_b, bNodeSocket &socket_b)
static void do_version_constraints_spline_ik_joint_bindings(ListBaseT< bConstraint > *lb)
bNodeSocket * version_node_add_socket_if_not_exist(bNodeTree *ntree, bNode *node, int in_out, int type, int subtype, const char *identifier, const char *name)
static bool version_seq_fix_broken_sound_strips(Strip *strip, void *)
static bool version_merge_still_offsets(Strip *strip, void *)
void version_node_socket_name(bNodeTree *ntree, const int node_type, const char *old_name, const char *new_name)
@ SN_OVERLAY_SHOW_OVERLAYS
@ SN_OVERLAY_SHOW_WIRE_COLORS
@ SN_OVERLAY_SHOW_NAMED_ATTRIBUTES
@ LRT_MATERIAL_CUSTOM_OCCLUSION_EFFECTIVENESS
ListBaseT< ID > * which_libbase(Main *bmain, short type)
bNodeSocket & version_node_add_socket(bNodeTree &ntree, bNode &node, const eNodeSocketInOut in_out, const char *idname, const char *identifier)
void do_versions_after_linking_300(FileData *fd, Main *bmain)
static void version_idproperty_move_data_int(IDPropertyUIDataInt *ui_data, const IDProperty *prop_ui_data)
int BKE_object_defgroup_active_index_get(const Object *ob)
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
bke::ARegionRuntime * runtime
eRegion_Alignment alignment
eNlaStrip_Extrapolate_Mode act_extendmode
ListBaseT< FCurve > drivers
ListBaseT< NlaTrack > nla_tracks
ListBaseT< Bone > childbase
eBrushSculptType sculpt_brush_type
eBrushCurvePreset curve_distance_falloff_preset
ListBaseT< DriverVar > variables
struct CurveMapping * curve_mapping
ListBaseT< Strip > seqbase
ListBaseT< FModifier > modifiers
AssetLibraryReference asset_library_ref
FileSelectParams base_params
eFileAssetImportMethod import_method
std::unique_ptr< SDNA > filesdna
eFileSel_Params_Flag flag
struct GpencilModifierData * next
char * subitem_reference_name
eID_OverrideLib_Op operation
int subitem_reference_index
char * subitem_local_name
ListBaseT< IDOverrideLibraryPropertyOperation > operations
ListBaseT< struct IDProperty > group
eLineArtGPencilModifierFlags flags
eLineartMainFlags calculation_flags
float chain_smooth_tolerance
ListBaseT< wmWindowManager > wm
ListBaseT< bArmature > armatures
ListBaseT< bNodeTree > nodetrees
ListBaseT< Curves > hair_curves
ListBaseT< Light > lights
ListBaseT< MovieClip > movieclips
ListBaseT< Brush > brushes
ListBaseT< Material > materials
ListBaseT< Object > objects
ListBaseT< Curve > curves
ListBaseT< WorkSpace > workspaces
ListBaseT< Image > images
ListBaseT< bAction > actions
ListBaseT< Scene > scenes
ListBaseT< bScreen > screens
struct ModifierData * next
struct MovieTracking tracking
float principal_legacy[2]
MovieTrackingCamera camera
ListBaseT< NlaStrip > strips
GeometryNodeExtrudeMeshMode mode
DNA_DEPRECATED ImageFormatData format
struct bNodeTree * node_group
struct NodesModifierSettings settings_legacy
struct IDProperty * properties
ListBaseT< ModifierData > modifiers
eObject_DrawExtraFlag dtx
ListBaseT< GpencilModifierData > greasepencil_modifiers
ImageFormatData im_format
struct Collection * master_collection
ColorManagedViewSettings view_settings
struct ToolSettings * toolsettings
ListBaseT< ARegion > regionbase
ListBaseT< SpaceLink > spacedata
DNA_DEPRECATED float automasking_cavity_factor
eSpaceSeq_SequencerPreviewOverlay_Flag flag
eSpaceSeq_SequencerTimelineOverlay_Flag flag
eTimeline_Cache_Flag cache_display
eFileBrowse_Mode browse_mode
FileSelectParams * params
FileAssetSelectParams * asset_params
eSpaceImageOverlay_Flag flag
SpaceImageOverlay overlay
eSpaceImage_GridShapeSource grid_shape_source
int custom_grid_subdiv[2]
ListBaseT< ARegion > regionbase
eSpaceNodeOverlay_Flag flag
eSpaceOutliner_Filter filter
struct SequencerPreviewOverlay preview_overlay
ListBaseT< ARegion > regionbase
struct SequencerTimelineOverlay timeline_overlay
eSpaceSeq_DrawFlag draw_flag
eSpaceSeq_RegionType mainb
eModColorBalanceMethod method
float sculpt_curves_cage_opacity
float viewer_attribute_opacity
float normals_constant_screen_size
WeightVGProximityModifierFlag proximity_flags
AssetLibraryReference asset_library_ref
ListBaseT< FCurve > curves
ListBaseT< Bone > bonebase
struct bConstraint * next
struct bNodeSocket * next
ListBaseT< bNodeLink > links
DNA_DEPRECATED ListBaseT< bNodeSocket > outputs_legacy
bNodeTreeInterface tree_interface
DNA_DEPRECATED ListBaseT< bNodeSocket > inputs_legacy
ListBaseT< bNodeSocket > outputs
ListBaseT< bNodeSocket > inputs
float custom_scale_xyz[3]
DNA_DEPRECATED float scale_out_x
DNA_DEPRECATED float scale_in_x
ListBaseT< struct bConstraint > constraints
DNA_DEPRECATED float scale_out_z
DNA_DEPRECATED float scale_in_z
ListBaseT< bPoseChannel > chanbase
ListBaseT< struct ScrArea > areabase
#define STRIP_SPEED_INTEGRATE
#define STRIP_SPEED_COMPRESS_IPO_Y