9#define DNA_DEPRECATED_ALLOW
11#include <fmt/format.h>
16#define DNA_GENFILE_VERSIONING_MACROS
118 if (scene.
ed !=
nullptr) {
120 idprops_process(strip->prop, &strip->system_properties);
141 auto process_bone_recursive = [](
const auto &process_bone_recursive,
Bone *bone) ->
void {
144 process_bone_recursive(process_bone_recursive, &bone_it);
148 process_bone_recursive(process_bone_recursive, &bone_it);
172 auto process_bone_recursive = [](
const auto &process_bone_recursive,
Bone *bone) ->
void {
175 if (bone->system_properties ==
nullptr) {
179 process_bone_recursive(process_bone_recursive, &bone_it);
184 process_bone_recursive(process_bone_recursive, &bone_child_it);
193 if (
layer.name == name) {
203 if (!old_seam_layer) {
247 brush.unprojected_size *= 2.0f;
251 if (
paint ==
nullptr) {
316 switch (
node.type_legacy) {
382 switch (
node.type_legacy) {
456 switch (
node.type_legacy) {
494 switch (
node.type_legacy) {
558 bool is_normal_ontput_needed =
false;
559 bool is_dot_output_used =
false;
561 if (link.
tosock == normal_input) {
562 normal_input_link = &link;
565 if (link.
fromsock == normal_output) {
566 is_normal_ontput_needed =
true;
570 is_dot_output_used =
true;
575 if (!is_dot_output_used) {
588 *dot_product_node,
SOCK_IN,
"Vector"_ustr);
590 *dot_product_node,
SOCK_IN,
"Vector_001"_ustr);
592 *dot_product_node,
SOCK_OUT,
"Value"_ustr);
597 if (normal_input_link) {
602 *dot_product_a_input);
611 normalized_node_normal);
619 *node_tree, *dot_product_node, *dot_product_output, *link.
tonode, *link.
tosock);
625 if (!is_normal_ontput_needed) {
651 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Resolution Mode");
659 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Quad Method");
664 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"N-gon Method");
679 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Resolution Mode");
689 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Operation");
768 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Resolution Mode");
782 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Interpolation");
792 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Pattern Mode");
802 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Interpolation");
812 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Scale Mode");
833 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"UV Smooth");
838 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Boundary Smooth");
868 if (scene.
ed !=
nullptr) {
870 if (strip->type == STRIP_TYPE_TEXT && strip->effectdata != nullptr) {
871 TextVars *data = static_cast<TextVars *>(strip->effectdata);
872 if (data->text_ptr == nullptr) {
873 data->text_ptr = BLI_strdup(data->text_legacy);
874 data->text_len_bytes = strlen(data->text_ptr);
899 if (
paint ==
nullptr) {
943 if (link.
tosock == factor_input) {
946 else if (link.
tosock == b_input) {
952 if (!factor_link && !b_link) {
1004 *separate_color_node,
SOCK_OUT,
"Alpha"_ustr);
1007 *node_tree, *b_link->
fromnode, *b_link->
fromsock, *separate_color_node, *image_input);
1009 *node_tree, *separate_color_node, *alpha_output, *multiply_node, *multiply_input_b);
1033 const float offset = texture_mapping.
loc[0];
1034 const float size = texture_mapping.
size[0];
1035 const float min = texture_mapping.
min[0];
1036 const float max = texture_mapping.
max[0];
1043 if (link.
tosock == value_input) {
1057 const float mapped_value = (value + offset) * size;
1058 const float min_clamped_value = use_min ?
math::max(mapped_value,
min) : mapped_value;
1059 const float clamped_value = use_max ?
math::min(min_clamped_value,
max) : min_clamped_value;
1063 *node_tree, value_node,
SOCK_OUT,
"NodeSocketFloat",
"Value");
1065 value_node.
parent = frame;
1072 for (
bNodeLink &link : node_tree->
links.items_reversed_mutable()) {
1081 MEM_delete(&texture_mapping);
1082 node->storage =
nullptr;
1093 *node_tree, add_node,
SOCK_IN,
"NodeSocketFloat",
"Value");
1095 *node_tree, add_node,
SOCK_IN,
"NodeSocketFloat",
"Value_001");
1099 *node_tree, add_node,
SOCK_OUT,
"NodeSocketFloat",
"Value");
1110 *node_tree, *value_link->
fromnode, *value_link->
fromsock, add_node, add_input_a);
1118 multiply_node.
parent = frame;
1125 *node_tree, multiply_node,
SOCK_IN,
"NodeSocketFloat",
"Value");
1127 *node_tree, multiply_node,
SOCK_IN,
"NodeSocketFloat",
"Value_001");
1131 *node_tree, multiply_node,
SOCK_OUT,
"NodeSocketFloat",
"Value");
1139 bNode *final_node = &multiply_node;
1152 *node_tree, max_node,
SOCK_IN,
"NodeSocketFloat",
"Value");
1154 *node_tree, max_node,
SOCK_IN,
"NodeSocketFloat",
"Value_001");
1157 *node_tree, max_node,
SOCK_OUT,
"NodeSocketFloat",
"Value");
1165 final_node = &max_node;
1166 final_output = &max_output;
1179 *node_tree, min_node,
SOCK_IN,
"NodeSocketFloat",
"Value");
1181 *node_tree, min_node,
SOCK_IN,
"NodeSocketFloat",
"Value_001");
1184 *node_tree, min_node,
SOCK_OUT,
"NodeSocketFloat",
"Value");
1192 final_node = &min_node;
1193 final_output = &min_output;
1197 for (
bNodeLink &link : node_tree->
links.items_reversed_mutable()) {
1206 MEM_delete(&texture_mapping);
1207 node->storage =
nullptr;
1220 switch (
node.type_legacy) {
1280 data->clamp_factor = 0;
1321 char escaped_node_name[
sizeof(
node.name) * 2 + 1];
1323 const std::string rna_path_prefix = fmt::format(
"nodes[\"{}\"].inputs", escaped_node_name);
1325 switch (
node.type_legacy) {
1370 if (!rotation_input) {
1376 if (!position_input) {
1381 constexpr int CMP_NODE_SPLIT_HORIZONTAL = 0;
1382 constexpr int CMP_NODE_SPLIT_VERTICAL = 1;
1384 switch (
node->custom2) {
1385 case CMP_NODE_SPLIT_HORIZONTAL: {
1387 -std::numbers::pi_v<float> / 2.0f;
1394 case CMP_NODE_SPLIT_VERTICAL: {
1405 ListBaseT<PTCacheID> pidlist;
1410 bool found_incompatible_cache =
false;
1411 if (
ELEM(pid.cache->compression,
1416 found_incompatible_cache =
true;
1420 found_incompatible_cache =
true;
1423 if (!found_incompatible_cache) {
1427 std::string cache_type;
1430 cache_type =
RPT_(
"Softbody");
1433 cache_type =
RPT_(
"Particle");
1436 cache_type =
RPT_(
"Cloth");
1439 cache_type =
RPT_(
"Smoke Domain");
1442 cache_type =
RPT_(
"Smoke");
1445 cache_type =
RPT_(
"Dynamic Paint");
1449 cache_type =
RPT_(
"Rigidbody");
1455 RPT_(
"%s Cache in object %s can not be read because it uses an "
1456 "outdated compression method. You need to delete the caches and re-bake."),
1458 pid.owner_id->name + 2);
1461 pidlist.free_no_destruct();
1477 float old_hsv_jitter[3] = {
1483 if (
brush->curve_rand_hue) {
1490 if (
brush->curve_rand_saturation) {
1497 if (
brush->curve_rand_value) {
1526 *glare_node,
SOCK_IN,
"Highlights Threshold"_ustr);
1541 for (
bNodeLink &link : node_tree.
links.items_reversed_mutable()) {
1542 if (link.tosock == old_image_input) {
1548 if (link.tosock == old_source_input) {
1554 if (link.tosock == old_length_input) {
1560 if (link.fromsock == old_image_output) {
1589 if (link.
tosock == old_image_input) {
1606 node_tree, *image_link->
fromnode, *image_link->
fromsock, *group_output_node, *image_input);
1612 return group_output_node;
1620 if (
node.storage ==
nullptr) {
1633 data->items_count =
node.inputs.count();
1634 data->items = MEM_new_array<NodeCompositorFileOutputItem>(
data->items_count, __func__);
1636 for (
const auto [i, input] :
node.inputs.enumerate()) {
1659 const std::string identifier =
"Item_" + std::to_string(item_data->
identifier);
1663 MEM_delete(old_item_data);
1664 input.storage =
nullptr;
1687 if (world->use_nodes) {
1694 if (ntree ==
nullptr) {
1697 bmain, &world->id,
"World Node Tree Versioning",
"ShaderNodeTree");
1700 bNode *old_output =
nullptr;
1710 *ntree, new_output,
SOCK_IN,
"NodeSocketShader",
"Surface");
1716 *ntree, background,
SOCK_OUT,
"NodeSocketShader",
"Background");
1718 *ntree, background,
SOCK_IN,
"NodeSocketColor",
"Color");
1720 *ntree, background,
SOCK_IN,
"NodeSocketFloat",
"Strength");
1722 *ntree, background,
SOCK_IN,
"NodeSocketFloat",
"Weight");
1726 *ntree, background, background_color_output, new_output, output_surface_input);
1729 rgba->
value[0] = world->horr;
1730 rgba->
value[1] = world->horg;
1731 rgba->
value[2] = world->horb;
1732 rgba->
value[3] = 1.0f;
1735 if (old_output !=
nullptr) {
1747 background.
parent = frame;
1748 new_output.
parent = frame;
1796 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Falloff");
1853 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Prefilter");
1856 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Quality");
1871 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Interpolation");
1874 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Extension X");
1877 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Extension Y");
1892 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Interpolation");
1895 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Extension X");
1898 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Extension Y");
1913 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Interpolation");
1916 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Extension X");
1919 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Extension Y");
1934 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Interpolation");
1937 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Extension X");
1940 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Extension Y");
1957 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Frame Type");
1962 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Interpolation");
1965 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Extension X");
1968 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Extension Y");
1983 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Interpolation");
1986 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Extension X");
1989 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Extension Y");
2004 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Interpolation");
2007 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Extension X");
2010 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Extension Y");
2021 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Interpolation");
2032 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Operation");
2043 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Operation");
2072 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Feather Falloff");
2084 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Size Source");
2113 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Quality");
2127 switch (
node.type_legacy) {
2129 node.storage = MEM_new<NodeClosureInput>(__func__);
2133 node.storage = MEM_new<NodeClosureOutput>(__func__);
2137 node.storage = MEM_new<NodeEvaluateClosure>(__func__);
2141 node.storage = MEM_new<NodeCombineBundle>(__func__);
2145 node.storage = MEM_new<NodeSeparateBundle>(__func__);
2154 if (material->use_nodes) {
2161 if (ntree ==
nullptr) {
2164 bmain, &material->id,
"Material Node Tree Versioning",
"ShaderNodeTree");
2167 bNode *old_output =
nullptr;
2183 *ntree, new_output_eevee,
SOCK_IN,
"NodeSocketShader",
"Surface");
2195 shader_eevee,
SOCK_IN,
"Base Color"_ustr);
2197 shader_eevee,
SOCK_IN,
"Specular IOR Level"_ustr);
2202 *ntree, shader_eevee, shader_bsdf_output, new_output_eevee, output_surface_input);
2205 rgba->
value[0] = material->r;
2206 rgba->
value[1] = material->g;
2207 rgba->
value[2] = material->b;
2208 rgba->
value[3] = material->a;
2213 if (old_output !=
nullptr) {
2223 shader_eevee.
parent = frame;
2224 new_output_eevee.
parent = frame;
2231 *ntree, new_output_cycles,
SOCK_IN,
"NodeSocketShader",
"Surface");
2234 *ntree, new_output_cycles,
SOCK_IN,
"NodeSocketVector",
"Displacement");
2245 *ntree, shader_cycles, shader_bsdf_output, new_output_cycles, output_surface_input);
2248 rgba->
value[0] = material->r;
2249 rgba->
value[1] = material->g;
2250 rgba->
value[2] = material->b;
2251 rgba->
value[3] = material->a;
2253 if (old_output !=
nullptr) {
2261 shader_cycles.
parent = frame;
2262 new_output_cycles.
parent = frame;
2291 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Color Space");
2294 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"RGB Key Channel");
2297 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"HSV Key Channel");
2300 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"YUV Key Channel");
2303 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"YCbCr Key Channel");
2307 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Limit Method");
2310 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"RGB Limit Channel");
2314 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"HSV Limit Channel");
2318 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"YUV Limit Channel");
2322 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"YCbCr Limit Channel");
2358 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Color Space");
2372 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Spill Channel");
2375 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Limit Method");
2380 ntree,
node,
SOCK_IN,
"NodeSocketMenu",
"Limit Channel");
2391 ntree,
node,
SOCK_IN,
"NodeSocketBool",
"Image Edges");
2394 ntree,
node,
SOCK_IN,
"NodeSocketBool",
"Only Inside Outer");
2409 const int input_sockets_num =
node.inputs.count();
2410 if (input_sockets_num ==
storage->items_num + 1) {
2415 storage->items = MEM_new_array<NodeGeometryViewerItem>(2, __func__);
2443 if (link.
tosock == displacement_input) {
2444 displacement_link = &link;
2446 if (link.
tosock == x_scale_input) {
2447 x_scale_link = &link;
2449 if (link.
tosock == y_scale_input) {
2450 y_scale_link = &link;
2462 *multiply_node,
SOCK_IN,
"Vector_001"_ustr);
2467 if (displacement_link) {
2488 node_tree, *combine_node, *combine_output, *multiply_node, *multiply_b_input);
2526 if (link.
tosock == size_input) {
2529 if (link.
tosock == image_input) {
2541 node_tree, multiply_node,
SOCK_IN,
"NodeSocketFloat",
"Value");
2543 node_tree, multiply_node,
SOCK_IN,
"NodeSocketFloat",
"Value_001");
2545 node_tree, multiply_node,
SOCK_OUT,
"NodeSocketFloat",
"Value");
2551 node_tree, *size_link->
fromnode, *size_link->
fromsock, multiply_node, multiply_a_input);
2558 nullptr, node_tree,
"CompositorNodeRelativeToPixel"_ustr);
2559 relative_to_pixel_node->
parent =
node.parent;
2566 *relative_to_pixel_node,
SOCK_IN,
"Image"_ustr);
2568 *relative_to_pixel_node,
SOCK_IN,
"Float Value"_ustr);
2570 *relative_to_pixel_node,
SOCK_OUT,
"Float Value"_ustr);
2573 *relative_to_pixel_node,
2574 *relative_to_pixel_value_output,
2583 *relative_to_pixel_node,
2584 *relative_to_pixel_image_input);
2609 if (strip->type == STRIP_TYPE_TRANSFORM_LEGACY && strip->effectdata != nullptr) {
2610 TransformVarsLegacy *tv = static_cast<TransformVarsLegacy *>(strip->effectdata);
2611 StripTransform *transform = strip->data->transform;
2612 float2 offset(tv->xIni, tv->yIni);
2613 if (tv->percent == 1) {
2614 float2 scene_resolution(scene->r.xsch, scene->r.ysch);
2615 offset *= scene_resolution / 100;
2617 transform->xofs += offset.x;
2618 transform->yofs += offset.y;
2619 transform->scale_x *= tv->ScalexIni;
2620 transform->scale_y *= tv->ScaleyIni;
2621 transform->rotation += DEG2RADF(tv->rotIni);
2622 seq::effect_free(strip);
2623 strip->type = STRIP_TYPE_GAUSSIAN_BLUR;
2624 seq::effect_ensure_initialized(strip);
2625 GaussianBlurVars *gv = static_cast<GaussianBlurVars *>(strip->effectdata);
2626 gv->size_x = gv->size_y = 0.0f;
2627 seq::edit_strip_name_set(scene, strip,
"Transform Placeholder (Migrated)");
2628 seq::ensure_unique_name(strip, scene, driver_map);
2647 if (link.
tosock == image_input) {
2648 image_input_link = &link;
2650 if (link.
tosock == type_input) {
2651 type_input_link = &link;
2655 if (type_input_link || !type_input ||
2667 *inverse_gamma_node,
SOCK_IN,
"Color"_ustr);
2671 *inverse_gamma_node,
SOCK_OUT,
"Color"_ustr);
2674 *inverse_gamma_node,
SOCK_IN,
"Gamma"_ustr);
2678 node_tree, *inverse_gamma_node, *inverse_gamma_color_output,
node, *image_input);
2679 if (image_input_link) {
2683 *inverse_gamma_node,
2684 *inverse_gamma_color_input);
2699 for (
bNodeLink &link : node_tree.
links.items_reversed_mutable()) {
2700 if (link.
fromsock != image_output) {
2714 constexpr char const *hide_prop_prefix =
"bones[";
2715 constexpr char const *hide_prop_suffix =
"\"].hide";
2720 int quoted_bone_name_start = 0;
2721 int quoted_bone_name_end = 0;
2723 rna_path.c_str(), hide_prop_prefix, "ed_bone_name_start, "ed_bone_name_end);
2724 if (is_prefix_found &&
STREQ(
rna_path.c_str() + quoted_bone_name_end, hide_prop_suffix)) {
2725 drivers_to_fix.
append(&fcurve);
2733 for (
Object *ob : users) {
2735 for (
FCurve *original : drivers_to_fix) {
2739 copy->rna_path_set_move(fixed_path);
2744 for (
FCurve *original : drivers_to_fix) {
2787 bNode *active_group_output =
nullptr;
2793 if (active_group_output) {
2807 for (
bNode &
node : node_tree->nodes.items_reversed_mutable()) {
2838 for (
bNode &
node : node_tree->nodes.items_reversed_mutable()) {
2853 if (scene->
ed !=
nullptr) {
2878 if (scene.
ed !=
nullptr) {
2910 if (!arm_adt || arm_adt->
drivers.is_empty()) {
2947 if ((socket->
flag & in_and_out) != in_and_out) {
2975 new_sockets.
extend(old_sockets);
2996 socket_to_node.
add(&socket, &
node);
2999 socket_to_node.
add(&socket, &
node);
3005 if (to_node != link.
tonode) {
3017 "Repairing invalid state in node link from %s:%s to %s:%s",
3033 if (!last_meta_stack) {
3043 bool experimental_features =
false;
3052 bool use_adaptive_subdivision =
false;
3053 float dicing_rate = 1.0f;
3057 if (experimental_features) {
3059 idprop,
"use_adaptive_subdivision",
false);
3071 if (use_adaptive_subdivision) {
3100 bool is_factor_output_linked =
false;
3101 bool is_color_output_linked =
false;
3105 if (link.
fromsock == factor_output) {
3106 is_factor_output_linked =
true;
3108 else if (link.
fromsock == color_output) {
3109 is_color_output_linked =
true;
3111 else if (link.
tosock == vector_input) {
3112 vector_input_link = &link;
3116 if (!is_factor_output_linked && !is_color_output_linked) {
3121 bNode *gradient_node =
nullptr;
3126 *node_tree, separate,
SOCK_IN,
"NodeSocketVector",
"Vector");
3128 *node_tree, separate,
SOCK_OUT,
"NodeSocketFloat",
"X");
3130 *node_tree, separate,
SOCK_OUT,
"NodeSocketFloat",
"Y");
3135 switch (
data->gradient_type) {
3138 gradient_node = &separate;
3139 gradient_socket = &separate_x_output;
3146 *node_tree,
max,
SOCK_IN,
"NodeSocketFloat",
"Value");
3148 *node_tree,
max,
SOCK_IN,
"NodeSocketFloat",
"Value_001");
3152 *node_tree,
max,
SOCK_OUT,
"NodeSocketFloat",
"Value");
3165 *node_tree, multiply,
SOCK_IN,
"NodeSocketFloat",
"Value");
3167 *node_tree, multiply,
SOCK_IN,
"NodeSocketFloat",
"Value_001");
3171 *node_tree, multiply,
SOCK_OUT,
"NodeSocketFloat",
"Value");
3173 multiply.location[0] =
max.location[0] + 20.0f;
3174 multiply.location[1] =
max.location[1];
3180 gradient_node = &multiply;
3181 gradient_socket = &multiply_output;
3188 *node_tree, add,
SOCK_IN,
"NodeSocketFloat",
"Value");
3190 *node_tree, add,
SOCK_IN,
"NodeSocketFloat",
"Value_001");
3194 *node_tree, add,
SOCK_OUT,
"NodeSocketFloat",
"Value");
3196 add.location[0] = separate.
location[0] + 20.0f;
3197 add.location[1] = separate.
location[1];
3205 *node_tree, multiply,
SOCK_IN,
"NodeSocketFloat",
"Value");
3207 *node_tree, multiply,
SOCK_IN,
"NodeSocketFloat",
"Value_001");
3211 *node_tree, multiply,
SOCK_OUT,
"NodeSocketFloat",
"Value");
3214 multiply.
location[0] = add.location[0] + 20.0f;
3215 multiply.
location[1] = add.location[1];
3223 gradient_node = &multiply;
3224 gradient_socket = &multiply_output;
3229 if (is_factor_output_linked) {
3231 for (
bNodeLink &link : node_tree->
links.items_reversed_mutable()) {
3232 if (link.
fromsock == factor_output) {
3234 *node_tree, *gradient_node, *gradient_socket, *link.
tonode, *link.
tosock);
3240 if (is_color_output_linked) {
3243 *node_tree, combine,
SOCK_IN,
"NodeSocketFloat",
"Red");
3245 *node_tree, combine,
SOCK_IN,
"NodeSocketFloat",
"Green");
3247 *node_tree, combine,
SOCK_IN,
"NodeSocketFloat",
"Blue");
3249 *node_tree, combine,
SOCK_IN,
"NodeSocketFloat",
"Alpha");
3252 *node_tree, combine,
SOCK_OUT,
"NodeSocketColor",
"Color");
3267 for (
bNodeLink &link : node_tree->
links.items_reversed_mutable()) {
3268 if (link.
fromsock == color_output) {
3274 gradient_node = &combine;
3275 gradient_socket = &combine_output;
3278 if (vector_input_link) {
3331 const int uv_select_island = 1 << 3;
3350 if (
node.storage !=
nullptr) {
3411 if (new_footer ==
nullptr) {
3428 for (
bNode &
node : node_tree->nodes.items_mutable()) {
3496 if (
node.storage ==
nullptr) {
3501 switch (
data->wrap_axis) {
3526 mesh.radial_symmetry[0] = 1;
3527 mesh.radial_symmetry[1] = 1;
3528 mesh.radial_symmetry[2] = 1;
3557 if (
node.storage ==
nullptr) {
3577 if (
node.storage !=
nullptr) {
3581 data->interpolation =
node.custom1;
3622 else if (
STREQ(
node.idname,
"FunctionNodeMatchString")) {
3635 if (
ed !=
nullptr) {
3637 for (StripModifierData &smd : strip->modifiers) {
3638 seq::modifier_persistent_uid_init(*strip, smd);
3648 if (
brush.gpencil_settings) {
3657 for (
Scene &scene : bmain->scenes) {
3688 for (
World &world : bmain->worlds) {
3763 if (
node.storage !=
nullptr) {
3767 data->interpolation =
node.custom1;
3785 if (
node.storage ==
nullptr) {
3805 if (
node.storage !=
nullptr) {
3809 data->interpolation =
node.custom2;
3826 if (
node.storage !=
nullptr) {
3830 data->interpolation =
node.custom1;
3870 for (
Object &
object : bmain->objects) {
3877 if (lmd->
radius != 0.0f) {
3904 for (
Scene &scene : bmain->scenes) {
3906 scene.r.bake.type =
eBakeType(scene.r.bake_mode);
3909 scene.r.bake.margin = scene.r.bake_margin;
3918 for (
Scene &scene : bmain->scenes) {
3935 for (
Scene &scene : bmain->scenes) {
3941 if (
paint !=
nullptr) {
3948 for (
Palette &palette : bmain->palettes) {
4043 for (
Scene &scene : bmain->scenes) {
4049 for (
Scene &scene : bmain->scenes) {
4050 scene.toolsettings->uvsculpt.size *= 2;
4056 if (
brush.curve_size ==
nullptr) {
4059 if (
brush.curve_strength ==
nullptr) {
4062 if (
brush.curve_jitter ==
nullptr) {
4070 for (
Curve &cu : bmain->curves) {
4078 for (
Scene &scene : bmain->scenes) {
4079 if (scene.ed !=
nullptr) {
4082 seq::modifier_set_active(strip, strip->modifiers.first());
4083 for (StripModifierData &smd : strip->modifiers) {
4084 smd.layout_panel_open_flag |= UI_PANEL_DATA_EXPAND_ROOT;
4102 for (
Material &material : bmain->materials) {
4152 for (
bScreen &screen : bmain->screens) {
4160 if (new_sidebar !=
nullptr) {
4244 if (!DNA_struct_exists(fd->filesdna,
"SpaceClipOverlay")) {
4245 for (
bScreen &screen : bmain->screens) {
4265 float default_col[4] = {0.5f, 0.5f, 0.5f, 1.0f};
4278 if (!
STREQ(socket.socket_type,
"NodeSocketMenu")) {
4291 for (
Scene &scene : bmain->scenes) {
4292 UvSculpt &uvsculpt = scene.toolsettings->uvsculpt;
4294 uvsculpt.
size = 100;
4306 wm.xr.session_settings.fly_speed = 3.0f;
4311 for (
Scene &scene : bmain->scenes) {
4312 scene.r.time_jump_delta = 1.0f;
4313 scene.r.time_jump_unit = 1;
4332 if (!DNA_struct_exists(fd->filesdna,
"SpaceActionOverlays")) {
4333 for (
bScreen &screen : bmain->screens) {
4371 for (
Material &material : bmain->materials) {
4378 for (
bScreen &screen : bmain->screens) {
4391 for (
bNodeTree &ntree : bmain->nodetrees) {
4401 mesh.mpoly =
nullptr;
4402 mesh.mloop =
nullptr;
4403 mesh.mvert =
nullptr;
4404 mesh.medge =
nullptr;
4405 mesh.dvert =
nullptr;
4406 mesh.mtface =
nullptr;
4407 mesh.tface =
nullptr;
4408 mesh.mcol =
nullptr;
4409 mesh.mface =
nullptr;
4414 for (
bScreen &screen : bmain->screens) {
4427 "Asset shelf for compositing (versioning)",
4435 "Asset shelf header for compositing (versioning)",
4449 "NodeClosureOutput",
4450 "GeometryNodeForeachGeometryElementInput",
4451 "GeometryNodeForeachGeometryElementOutput",
4452 "GeometryNodeRepeatInput",
4453 "GeometryNodeRepeatOutput",
4454 "GeometryNodeSimulationInput",
4455 "GeometryNodeSimulationOutput",
4456 "GeometryNodeViewer",
4459 "ShaderNodeOutputAOV",
4460 "ShaderNodeOutputLight",
4461 "ShaderNodeOutputLineStyle",
4462 "ShaderNodeOutputMaterial",
4463 "ShaderNodeOutputWorld",
4464 "TextureNodeOutput",
4465 "TextureNodeViewer"};
4466 for (
bNodeTree &ntree : bmain->nodetrees) {
4476 for (
Scene &scene : bmain->scenes) {
4481 for (StripModifierData &md : strip->modifiers) {
4482 md.ui_expand_flag = md.layout_panel_open_flag & UI_PANEL_DATA_EXPAND_ROOT;
Low-level operations for curves.
Low-level operations for grease pencil.
#define FOREACH_MAIN_ID_END
#define MAIN_VERSION_FILE_ATLEAST(main, ver, subver)
#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_MERGE_BY_DISTANCE
#define GEO_NODE_TRIANGULATE
#define CMP_NODE_PREMULKEY
#define SH_NODE_COMBINE_COLOR
#define NODE_EVALUATE_CLOSURE
#define GEO_NODE_SUBDIVISION_SURFACE
#define SH_NODE_TEX_GRADIENT
#define SH_NODE_COMBRGB_LEGACY
#define CMP_NODE_MATH_DEPRECATED
#define CMP_NODE_SEPHSVA_LEGACY
#define CMP_NODE_VALUE_DEPRECATED
#define CMP_NODE_COLOR_SPILL
#define CMP_NODE_CORNERPIN
#define GEO_NODE_MESH_TO_VOLUME
#define CMP_NODE_MASK_ELLIPSE
#define CMP_NODE_DISPLACE
#define CMP_NODE_COMBYCCA_LEGACY
#define SH_NODE_BSDF_PRINCIPLED
#define CMP_NODE_SEPRGBA_LEGACY
#define CMP_NODE_SEPARATE_COLOR
#define CMP_NODE_TRANSLATE
#define GEO_NODE_UV_PACK_ISLANDS
#define CMP_NODE_MOVIEDISTORTION
#define SH_NODE_SEPARATE_COLOR
#define CMP_NODE_MAP_RANGE_DEPRECATED
#define CMP_NODE_COLORBALANCE
#define SH_NODE_MAP_RANGE
#define GEO_NODE_REMOVE_ATTRIBUTE
#define TEX_NODE_DECOMPOSE_LEGACY
#define GEO_NODE_UV_UNWRAP
#define SH_NODE_SEPRGB_LEGACY
#define CMP_NODE_COMBYUVA_LEGACY
#define CMP_NODE_KUWAHARA
#define SH_NODE_NORMAL_MAP
#define SH_NODE_CURVE_VEC
#define CMP_NODE_ALPHAOVER
#define CMP_NODE_MAP_VALUE_DEPRECATED
#define CMP_NODE_SEPYUVA_LEGACY
#define TEX_NODE_COMBINE_COLOR
#define CMP_NODE_COMBHSVA_LEGACY
#define GEO_NODE_TRANSFORM_GEOMETRY
#define CMP_NODE_COMBINE_XYZ_DEPRECATED
#define FN_NODE_COMBINE_COLOR
#define TEX_NODE_SEPARATE_COLOR
#define CMP_NODE_TRANSFORM
#define CMP_NODE_DILATEERODE
#define SH_NODE_BSDF_DIFFUSE
#define CMP_NODE_BOKEHBLUR
#define SH_NODE_SEPHSV_LEGACY
#define TEX_NODE_COMPOSE_LEGACY
#define CMP_NODE_LENSDIST
#define GEO_NODE_SAMPLE_GRID
#define GEO_NODE_FILLET_CURVE
#define CMP_NODE_ZCOMBINE
#define NODE_CLOSURE_OUTPUT
#define CMP_NODE_TRACKPOS
#define CMP_NODE_SUNBEAMS_DEPRECATED
#define CMP_NODE_MIX_RGB_DEPRECATED
#define CMP_NODE_OUTPUT_FILE
#define CMP_NODE_COLORCORRECTION
#define CMP_NODE_SETALPHA
#define CMP_NODE_DOUBLEEDGEMASK
#define CMP_NODE_GAMMA_DEPRECATED
#define GEO_NODE_RESAMPLE_CURVE
#define CMP_NODE_VALTORGB_DEPRECATED
#define CMP_NODE_STABILIZE2D
#define CMP_NODE_COMBINE_COLOR
#define GEO_NODE_SCALE_ELEMENTS
#define NODE_COMBINE_BUNDLE
#define CMP_NODE_COMBRGBA_LEGACY
#define CMP_NODE_COMPOSITE_DEPRECATED
#define CMP_NODE_MASK_BOX
#define FN_NODE_SEPARATE_COLOR
#define GEO_NODE_FILL_CURVE
#define GEO_NODE_POINTS_TO_VOLUME
#define CMP_NODE_SEPYCCA_LEGACY
#define GEO_NODE_DISTRIBUTE_POINTS_IN_VOLUME
#define CMP_NODE_DIST_MATTE
#define NODE_SEPARATE_BUNDLE
#define NODE_CLOSURE_INPUT
#define CMP_NODE_SEPARATE_XYZ_DEPRECATED
#define CMP_NODE_VIEW_LEVELS
#define SH_NODE_COMBHSV_LEGACY
#define CMP_NODE_CURVE_VEC_DEPRECATED
#define GEO_NODE_VOLUME_TO_MESH
#define GEO_NODE_SET_CURVE_NORMAL
#define CMP_NODE_CHANNEL_MATTE
#define PTCACHE_TYPE_SMOKE_HIGHRES
#define PTCACHE_TYPE_CLOTH
#define PTCACHE_TYPE_DYNAMICPAINT
#define PTCACHE_TYPE_PARTICLES
#define PTCACHE_TYPE_SOFTBODY
#define PTCACHE_TYPE_SMOKE_DOMAIN
#define PTCACHE_TYPE_RIGIDBODY
#define STRNCPY_UTF8(dst, src)
#define BLI_string_joinN(...)
ID and Library types, which are fundamental for SDNA.
blenloader genfile private function prototypes
Types and defines for representing Rigid Body entities.
Read Blender memory allocation and freeing.
#define BLI_assert_unreachable()
constexpr IndexRange()=default
const Value * lookup_ptr(const Key &key) const
Value & lookup_or_add_default(const Key &key)
bool add(const Key &key, const Value &value)
const Value & lookup(const Key &key) const
constexpr MutableSpan()=default
bool contains(const Key &key) const
void append(const T &value)
void extend(Span< T > array)
VectorData< T, Allocator > release()
#define storage(slot, qualifiers)
void camera(KernelGlobals &kg, const ShadingData &sd, float3 &outview, float &outdepth, float &outdist)
ccl_device_inline void copy_v4_v4(ccl_private float *r, const float4 val)
constexpr float LEGACY_RADIUS_CONVERSION_FACTOR
void mesh_sculpt_mask_to_generic(Mesh &mesh)
bNodeTree * node_tree_add_tree_embedded(Main *bmain, ID *owner_id, StringRefNull name, StringRefNull idname)
void pointcloud_convert_customdata_to_storage(PointCloud &pointcloud)
void node_remove_link(bNodeTree *ntree, bNodeLink &link)
void node_tree_set_type(bNodeTree &ntree)
bNode * node_add_node(const bContext *C, bNodeTree &ntree, UString idname, std::optional< int > unique_identifier=std::nullopt)
std::optional< eNodeSocketDatatype > custom_data_type_to_socket_type(eCustomDataType type)
bNode * node_add_static_node(const bContext *C, bNodeTree &ntree, int type)
void curves_convert_customdata_to_storage(CurvesGeometry &curves)
void grease_pencil_convert_customdata_to_storage(GreasePencil &grease_pencil)
bNodeSocket * node_add_static_socket(bNodeTree &ntree, bNode &node, eNodeSocketInOut in_out, int type, int subtype, StringRefNull identifier, StringRefNull name)
void mesh_custom_normals_to_generic(Mesh &mesh)
bNodeSocket * node_find_socket(bNode &node, eNodeSocketInOut in_out, UString identifier)
void mesh_uv_select_to_single_attribute(Mesh &mesh)
T min(const T &a, const T &b)
MatBase< T, NumCol, NumRow > normalize(const MatBase< T, NumCol, NumRow > &a)
T max(const T &a, const T &b)
void foreach_strip(ListBaseT< Strip > *seqbase, ForEachFunc callback, void *user_data)
Editing * editing_get(const Scene *scene)
void meta_stack_set(const Scene *scene, Strip *dst)
MetaStack * meta_stack_active_get(const Editing *ed)
bool version_node_ensure_storage_or_invalidate(bNode &node)
CurveMapping * BKE_curvemapping_add(int tot, float minx, float miny, float maxx, float maxy)
@ CMP_NODE_RELATIVE_TO_PIXEL_REFERENCE_DIMENSION_GREATER
static void update_format_media_type(ImageFormatData *format)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
static void do_version_scale_menus_to_inputs(bNodeTree &ntree, bNode &node)
static void copy_unified_paint_settings(Scene &scene, Paint *paint)
@ CMP_NODE_TRANSLATE_REPEAT_AXIS_XY
@ CMP_NODE_TRANSLATE_REPEAT_AXIS_Y
@ CMP_NODE_TRANSLATE_REPEAT_AXIS_X
@ CMP_NODE_TRANSLATE_REPEAT_AXIS_NONE
static void do_version_convert_to_generic_nodes_after_linking(Main *bmain, bNodeTree *node_tree)
CurveMapping * BKE_curvemapping_copy(const CurveMapping *cumap)
char * STRNCPY(char(&dst)[N], const char *src)
static void initialize_closure_input_structure_types(bNodeTree &ntree)
static void do_version_filter_menus_to_inputs(bNodeTree &ntree, bNode &node)
void BKE_pose_rebuild(Main *bmain, Object *ob, bArmature *arm, bool do_id_user)
@ SUBSURF_ADAPTIVE_SPACE_PIXEL
static void do_version_distribute_points_in_volume_options_to_inputs(bNodeTree &ntree, bNode &node)
static void do_version_raycast_options_to_inputs(bNodeTree &ntree, bNode &node)
static void do_version_triangulate_options_to_inputs(bNodeTree &ntree, bNode &node)
static void do_version_box_mask_menus_to_inputs(bNodeTree &ntree, bNode &node)
MINLINE void copy_v3_v3(float r[3], const float a[3])
static void do_version_set_alpha_menus_to_inputs(bNodeTree &ntree, bNode &node)
@ RGN_TYPE_ASSET_SHELF_HEADER
@ CMP_NODE_RELATIVE_TO_PIXEL_DATA_TYPE_FLOAT
static void do_version_resample_curve_options_to_inputs(bNodeTree &ntree, bNode &node)
static void do_version_rotate_menus_to_inputs(bNodeTree &ntree, bNode &node)
@ MEDIA_TYPE_MULTI_LAYER_IMAGE
static void do_version_fill_curve_options_to_inputs(bNodeTree &ntree, bNode &node)
MINLINE void copy_v2_v2(float r[2], const float a[2])
float version_cycles_property_float(IDProperty *idprop, const char *name, float default_value)
std::string RNA_path_number_to_infix(const int number)
void do_versions_after_linking_500(FileData *fd, Main *bmain)
static void do_version_denoise_menus_to_inputs(bNodeTree &ntree, bNode &node)
void srgb_to_linearrgb_v3_v3(float linear[3], const float srgb[3])
static void do_version_file_output_node(bNode &node)
static void for_each_mode_paint_settings(Scene &scene, FunctionRef< void(Scene &scene, Paint *paint)> func)
void BLI_string_replace_char(char *str, char src, char dst) ATTR_NONNULL(1)
void blo_do_versions_500(FileData *fd, Library *lib, Main *bmain)
static CustomDataLayer * find_old_seam_layer(CustomData &custom_data, const StringRef name)
@ CMP_NODE_COMBSEP_COLOR_YCC
@ CMP_NODE_COMBSEP_COLOR_YUV
@ CMP_NODE_COMBSEP_COLOR_HSV
@ CMP_NODE_COMBSEP_COLOR_RGB
static void do_version_uv_pack_islands_options_to_inputs(bNodeTree &ntree, bNode &node)
static void do_version_mask_menus_to_inputs(bNodeTree &ntree, bNode &node)
@ eModifierType_GreasePencilLineart
void BKE_curvemapping_copy_data(CurveMapping *target, const CurveMapping *cumap)
static void do_version_displace_menus_to_inputs(bNodeTree &ntree, bNode &node)
static void do_version_color_spill_menus_to_inputs(bNodeTree &ntree, bNode &node)
static void do_version_set_curve_normal_options_to_inputs(bNodeTree &ntree, bNode &node)
static void do_version_volume_to_mesh_options_to_inputs(bNodeTree &ntree, bNode &node)
@ FILE_BROWSE_MODE_ASSETS
@ CMP_NODE_GLARE_QUALITY_HIGH
@ MA_BL_LIGHTPROBE_VOLUME_DOUBLE_SIDED
static void do_version_corner_pin_menus_to_inputs(bNodeTree &ntree, bNode &node)
bool BKE_imtype_is_multi_layer_image(char imtype)
static void do_version_fillet_curve_options_to_inputs(bNodeTree &ntree, bNode &node)
static void version_dynamic_viewer_node_items(bNodeTree &ntree)
static void do_version_split_node_rotation(bNodeTree *node_tree, bNode *node)
bNode & version_node_add_empty(bNodeTree &ntree, const char *idname)
static void do_version_dilate_menus_to_inputs(bNodeTree &ntree, bNode &node)
static void repair_node_link_node_pointers(FileData &fd, bNodeTree &node_tree)
@ LIB_ID_CREATE_NO_USER_REFCOUNT
static void do_version_blur_menus_to_inputs(bNodeTree &ntree, bNode &node)
static void do_version_sample_grid_options_to_inputs(bNodeTree &ntree, bNode &node)
@ SHD_NORMAL_MAP_BASE_DISPLACED
@ ADS_OVERLAY_SHOW_OVERLAYS
@ ADS_SHOW_SCENE_STRIP_FRAME_RANGE
AnimData * BKE_animdata_ensure_id(ID *id)
@ RGN_ALIGN_HIDE_WITH_PREV
const char * RE_engine_id_BLENDER_EEVEE
void version_socket_update_is_used(bNodeTree *ntree)
void BKE_animdata_fix_paths(ID &id, StringRef prefix, StringRef old_infix, StringRef new_infix, bool verify_paths, const DriverMap &driver_map)
void version_node_output_socket_name(bNodeTree *ntree, const int node_type, const char *old_name, const char *new_name)
static void do_version_ellipse_mask_menus_to_inputs(bNodeTree &ntree, bNode &node)
bool BKE_imtype_is_image(char imtype)
static void rename_mesh_uv_seam_attribute(Mesh &mesh)
AnimData * BKE_animdata_from_id(const ID *id)
size_t void BLI_uniquename_cb(FunctionRef< bool(StringRefNull)> unique_check, const char *defname, char delim, char *name, size_t name_maxncpy) ATTR_NONNULL(2
void version_node_socket_identifier_set(bNodeSocket &socket, const StringRefNull identifier)
@ R_IMF_IMTYPE_MULTILAYER
void * BLI_findlink(const ListBase *listbase, int number) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
static void remove_in_and_out_node_interface(bNodeTree &node_tree)
static void do_version_channel_matte_menus_to_inputs(bNodeTree &ntree, bNode &node)
@ CMP_NODE_GLARE_SUN_BEAMS
static void do_version_scale_elements_options_to_inputs(bNodeTree &ntree, bNode &node)
static void do_version_transform_menus_to_inputs(bNodeTree &ntree, bNode &node)
@ eSubsurfModifierFlag_UseAdaptiveSubdivision
static void do_version_uv_unwrap_options_to_inputs(bNodeTree &ntree, bNode &node)
Scene * WM_window_get_active_scene(const wmWindow *win)
static void sequencer_remove_listbase_pointers(Scene &scene)
static void do_version_displace_node_remove_xy_scale(bNodeTree &node_tree, bNode &node)
void BLI_remlink(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
BMesh const char void * data
static bNode * do_version_composite_node_in_scene_tree(bNodeTree &node_tree, bNode &node)
char char size_t BLI_str_escape(char *__restrict dst, StringRef src, size_t dst_maxncpy) ATTR_NONNULL(1)
static void do_version_lift_gamma_gain_srgb_to_linear(bNodeTree &node_tree, bNode &node)
void AS_asset_library_import_method_ensure_valid(Main &bmain)
static void initialize_missing_closure_and_bundle_node_storage(bNodeTree &ntree)
void version_system_idprops_nodes_generate(Main *bmain)
static void do_version_mix_color_use_alpha(bNodeTree *node_tree, bNode *node)
static void version_seq_text_from_legacy(Main *bmain)
FCurve * BKE_fcurve_copy(const FCurve *fcu)
static void remove_in_and_out_node_panel_recursive(bNodeTreeInterfacePanel &panel)
DriverMap BKE_animdata_build_driver_target_map(Main &bmain)
static void do_version_convert_to_generic_nodes(bNodeTree *node_tree)
static void do_version_texture_gradient_clamp(bNodeTree *node_tree)
static void do_version_stabilize_2d_menus_to_inputs(bNodeTree &ntree, bNode &node)
static void do_version_convert_alpha_menus_to_inputs(bNodeTree &ntree, bNode &node)
WorkSpace * WM_window_get_active_workspace(const wmWindow *win)
static void do_version_kuwahara_menus_to_inputs(bNodeTree &ntree, bNode &node)
@ CMP_NODE_EXTENSION_MODE_REPEAT
@ CMP_NODE_EXTENSION_MODE_CLIP
void BKE_ptcache_ids_from_object(ListBaseT< PTCacheID > *lb, struct Object *ob, struct Scene *scene, int duplis)
static void do_version_match_string_options_to_inputs(bNodeTree &ntree, bNode &node)
void BLO_reportf_wrap(BlendFileReadReport *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
@ CMP_NODE_INTERPOLATION_ANISOTROPIC
static void do_version_world_remove_use_nodes(Main *bmain, World *world)
static void idprops_process(IDProperty *idprops, IDProperty **system_idprops)
static void do_version_convert_gp_jitter_values(Brush *brush)
void version_node_tree_clear_interface(bNodeTree &ntree)
static void do_version_remove_attribute_options_to_inputs(bNodeTree &ntree, bNode &node)
static void do_version_points_to_volume_options_to_inputs(bNodeTree &ntree, bNode &node)
static void do_version_double_edge_mask_options_to_inputs(bNodeTree &ntree, bNode &node)
static void do_version_subdivision_surface_options_to_inputs(bNodeTree &ntree, bNode &node)
void BKE_image_format_free(ImageFormatData *imf)
bool BKE_imtype_is_movie(char imtype)
static void do_version_track_position_menus_to_inputs(bNodeTree &ntree, bNode &node)
static void do_version_mesh_to_volume_options_to_inputs(bNodeTree &ntree, bNode &node)
bool version_cycles_property_boolean(IDProperty *idprop, const char *name, bool default_value)
static void do_version_adaptive_subdivision(Main *bmain)
void BKE_fcurve_free(FCurve *fcu)
void BKE_curvemapping_free_data(CurveMapping *cumap)
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
@ IMA_SHOW_SEQUENCER_SCENE
char * BLI_strdup(const char *str) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) ATTR_MALLOC
static void do_version_keying_menus_to_inputs(bNodeTree &ntree, bNode &node)
bool BLI_str_quoted_substr_range(const char *__restrict str, const char *__restrict prefix, int *__restrict r_start, int *__restrict r_end) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
@ CMP_NODE_COLOR_BALANCE_LGG
static void do_version_levels_menus_to_inputs(bNodeTree &ntree, bNode &node)
void version_system_idprops_children_bones_generate(Main *bmain)
static void do_version_glare_menus_to_inputs(bNodeTree &ntree, bNode &node)
static void do_version_map_uv_menus_to_inputs(bNodeTree &ntree, bNode &node)
void version_node_input_socket_name(bNodeTree *ntree, const int node_type, const char *old_name, const char *new_name)
static void do_version_translate_menus_to_inputs(bNodeTree &ntree, bNode &node)
static void do_version_scene_remove_use_nodes(Scene *scene)
ID_Type GS(const char *name)
IDProperty * version_cycles_properties_from_ID(ID *id)
static void do_version_map_value_node(bNodeTree *node_tree, bNode *node)
@ SHD_SKY_SINGLE_SCATTERING
@ SHD_SKY_MULTIPLE_SCATTERING
static void do_version_material_remove_use_nodes(Main *bmain, Material *material)
static void do_version_color_balance_menus_to_inputs(bNodeTree &ntree, bNode &node)
void BLI_path_split_dir_file(const char *filepath, char *dir, size_t dir_maxncpy, char *file, size_t file_maxncpy) ATTR_NONNULL(1
CurveMapping * BKE_paint_default_curve()
@ NODE_VECTOR_MATH_DOT_PRODUCT
@ NODE_VECTOR_MATH_MULTIPLY
Map< ID *, Vector< DriverTarget * > > DriverMap
char * BLI_strdup_null(const char *str) ATTR_WARN_UNUSED_RESULT ATTR_MALLOC
MINLINE void copy_v4_v4(float r[4], const float a[4])
static void do_version_movie_distortion_menus_to_inputs(bNodeTree &ntree, bNode &node)
static void version_bone_hide_property_driver(AnimData *arm_adt, Vector< Object * > &users)
ARegion * do_versions_add_region_if_not_found(ListBaseT< ARegion > *regionbase, int region_type, const char *, int link_after_region_type)
static void do_version_distance_matte_menus_to_inputs(bNodeTree &ntree, bNode &node)
static void versioning_replace_legacy_combined_and_separate_color_nodes(bNodeTree *ntree)
@ NODE_INTERFACE_SOCKET_OPTIONAL_LABEL
@ NODE_INTERFACE_SOCKET_OUTPUT
@ NODE_INTERFACE_SOCKET_INPUT
static void do_version_tone_map_menus_to_inputs(bNodeTree &ntree, bNode &node)
static void update_brush_sizes(Main &bmain)
static void do_version_remove_lzo_and_lzma_compression(FileData *fd, Object *object)
const char * RE_engine_id_BLENDER_EEVEE_NEXT
VecBase< float, 3 > float3
IDProperty * IDP_CopyProperty_ex(const IDProperty *prop, int flag) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
static void do_version_merge_by_distance_options_to_inputs(bNodeTree &ntree, bNode &node)
static void do_version_normal_node_dot_product(bNodeTree *node_tree, bNode *node)
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)
bScreen * WM_window_get_active_screen(const wmWindow *win)
static void do_version_transform_geometry_options_to_inputs(bNodeTree &ntree, bNode &node)
void BKE_image_format_copy(ImageFormatData *imf_dst, const ImageFormatData *imf_src)
@ PTCACHE_COMPRESS_LZMA_DEPRECATED
@ PTCACHE_COMPRESS_LZO_DEPRECATED
@ PTCACHE_COMPRESS_ZSTD_FILTERED
static void do_version_lens_distortion_menus_to_inputs(bNodeTree &ntree, bNode &node)
bNodeLink & version_node_add_link(bNodeTree &ntree, bNode &node_a, bNodeSocket &socket_a, bNode &node_b, bNodeSocket &socket_b)
static void sequencer_substitute_transform_effects(Scene *scene, const DriverMap &driver_map)
MINLINE bool is_zero_v3(const float v[3]) ATTR_WARN_UNUSED_RESULT
bNodeTree * version_get_scene_compositor_node_tree(Main *bmain, Scene *scene)
static bool window_has_sequence_editor_open(const wmWindow *win)
void version_node_socket_name(bNodeTree *ntree, const int node_type, const char *old_name, const char *new_name)
static void do_version_bokeh_blur_pixel_size(bNodeTree &node_tree, bNode &node)
bNodeSocket & version_node_add_socket(bNodeTree &ntree, bNode &node, const eNodeSocketInOut in_out, const char *idname, const char *identifier)
void version_node_remove(bNodeTree &ntree, bNode &node)
static void do_version_sun_beams(bNodeTree &node_tree, bNode &node)
void version_system_idprops_generate(Main *bmain)
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
eRegion_Alignment alignment
ListBaseT< FCurve > drivers
ListBaseT< Bone > childbase
struct CurveMapping * curve_rand_saturation
struct CurveMapping * curve_rand_hue
struct CurveMapping * curve_rand_value
ListBaseT< Strip > seqbase
FileSelectParams base_params
BlendFileReadReport * reports
GreasePencilDrawingType type
IDProperty * system_properties
ListBaseT< wmWindowManager > wm
ListBaseT< bArmature > armatures
ListBaseT< Curves > hair_curves
ListBaseT< PointCloud > pointclouds
ListBaseT< Brush > brushes
ListBaseT< Object > objects
ListBaseT< Scene > scenes
ListBaseT< GreasePencil > grease_pencils
ListBaseT< bScreen > screens
char override_node_format
char vector_socket_dimensions
eNodeSocketDatatype socket_type
NodeSocketInterfaceStructureType structure_type
eNodeSocketDatatype socket_type
DNA_DEPRECATED char save_as_render
DNA_DEPRECATED char path[1024]
DNA_DEPRECATED ImageFormatData format
DNA_DEPRECATED char layer[62]
DNA_DEPRECATED short use_node_format
ListBaseT< PaletteColor > colors
DNA_DEPRECATED float gtao_distance
ListBaseT< ViewLayer > view_layers
DNA_DEPRECATED char use_nodes
DNA_DEPRECATED struct bNodeTree * compositing_node_group
DNA_DEPRECATED struct bNodeTree * nodetree
struct ToolSettings * toolsettings
ListBaseT< ARegion > regionbase
ListBaseT< SpaceLink > spacedata
SpaceActionOverlays_Flag flag
SpaceActionOverlays overlays
struct SpaceClipOverlay overlay
eFileBrowse_Mode browse_mode
FileAssetSelectParams * asset_params
ListBaseT< ARegion > regionbase
eSubsurfAdaptiveSpace adaptive_space
SubsurfModifierFlag flags
float adaptive_pixel_size
float adaptive_object_edge_length
eUnifiedPaintSettingsFlags flag
DNA_DEPRECATED float rgb[3]
struct CurveMapping * curve_rand_saturation
DNA_DEPRECATED float secondary_rgb[3]
struct CurveMapping * curve_rand_value
struct CurveMapping * curve_rand_hue
struct CurveMapping * curve_distance_falloff
int8_t curve_distance_falloff_preset
float ambient_occlusion_distance
struct ViewLayerEEVEE eevee
struct IDProperty * id_properties
struct IDProperty * system_properties
struct Scene * sequencer_scene
ListBaseT< Bone > bonebase
NodeTreeInterfaceItemType item_type
bNodeTreeInterfaceItem ** items_array
NodeTreeInterfaceSocketFlag flag
bNodeTreeInterfaceItem item
NodeSocketInterfaceStructureType structure_type
NodeDefaultInputType default_input
char * default_attribute_name
struct IDProperty * properties
bNodeTreeInterfacePanel root_panel
ListBaseT< bNodeLink > links
bNodeTreeInterface tree_interface
ListBaseT< bNodeSocket > inputs
ListBaseT< struct ScrArea > areabase