9#define DNA_DEPRECATED_ALLOW
11#include <fmt/format.h>
72 if (
data->legacy_noise) {
88 if (
curves.custom_knots !=
nullptr) {
94 if (knot_modes ==
nullptr) {
98 for (
const int curve :
curves.curves_range()) {
99 int8_t &knot_mode = knot_modes[curve];
104 curves.nurbs_custom_knots_update_size();
126 for (
FCurve &fcurve : strip.fcurves) {
178 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
180 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
185 if (!fcurve->rna_path().startswith(node_rna_path)) {
191 fcurve->rna_path_set_move(
192 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[14].default_value"));
230 "Catadioptric Size");
241 node->storage =
nullptr;
249 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
251 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
256 if (!fcurve->rna_path().startswith(node_rna_path)) {
263 fcurve->rna_path_set_move(
264 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[0].default_value"));
267 fcurve->rna_path_set_move(
268 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[1].default_value"));
271 fcurve->rna_path_set_move(
272 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[2].default_value"));
275 fcurve->rna_path_set_move(
276 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[3].default_value"));
279 fcurve->rna_path_set_move(
280 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[4].default_value"));
306 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
308 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
313 if (!fcurve->rna_path().startswith(node_rna_path)) {
320 fcurve->rna_path_set_move(
321 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[0].default_value"));
324 fcurve->rna_path_set_move(
325 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[1].default_value"));
377 node->storage =
nullptr;
384 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
386 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
391 if (!fcurve->rna_path().startswith(node_rna_path)) {
398 fcurve->rna_path_set_move(
399 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[0].default_value"));
402 fcurve->rna_path_set_move(
403 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[1].default_value"));
406 fcurve->rna_path_set_move(
407 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[2].default_value"));
410 fcurve->rna_path_set_move(
411 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[3].default_value"));
414 fcurve->rna_path_set_move(
415 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[4].default_value"));
418 fcurve->rna_path_set_move(
419 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[5].default_value"));
438 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
440 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
445 if (!fcurve->rna_path().startswith(node_rna_path)) {
452 fcurve->rna_path_set_move(
453 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[0].default_value"));
457 fcurve->rna_path_set_move(
458 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[1].default_value"));
461 fcurve->rna_path_set_move(
462 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[2].default_value"));
481 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
483 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
488 if (!fcurve->rna_path().startswith(node_rna_path)) {
495 fcurve->rna_path_set_move(
496 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[0].default_value"));
497 adjust_fcurve_key_frame_values(
498 fcurve, PROP_FLOAT, [&](const float value) { return value / 100.0f; });
500 else if (BLI_str_endswith(fcurve->rna_path().c_str(),
"inputs[0].default_value")) {
502 fcurve->rna_path_set_move(
503 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[1].default_value"));
505 else if (
BLI_str_endswith(fcurve->rna_path().c_str(),
"inputs[1].default_value")) {
506 fcurve->rna_path_set_move(
507 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[2].default_value"));
534 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
536 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
541 if (!fcurve->rna_path().startswith(node_rna_path)) {
548 fcurve->rna_path_set_move(
549 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[2].default_value"));
552 fcurve->rna_path_set_move(
553 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[3].default_value"));
579 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
581 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
586 if (!fcurve->rna_path().startswith(node_rna_path)) {
593 fcurve->rna_path_set_move(
594 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[4].default_value"));
597 fcurve->rna_path_set_move(
598 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[5].default_value"));
658 "Chromatic Adaptation",
659 "Chromatic Adaptation");
668 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
670 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
675 if (!fcurve->rna_path().startswith(node_rna_path)) {
682 fcurve->rna_path_set_move(
683 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[1].default_value"));
686 fcurve->rna_path_set_move(
687 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[2].default_value"));
690 fcurve->rna_path_set_move(
691 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[3].default_value"));
694 fcurve->rna_path_set_move(
695 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[4].default_value"));
698 fcurve->rna_path_set_move(
699 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[5].default_value"));
702 fcurve->rna_path_set_move(
703 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[6].default_value"));
706 fcurve->rna_path_set_move(
707 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[7].default_value"));
732 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
734 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
739 if (!fcurve->rna_path().startswith(node_rna_path)) {
746 fcurve->rna_path_set_move(
747 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[1].default_value"));
750 fcurve->rna_path_set_move(
751 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[2].default_value"));
770 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
772 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
777 if (!fcurve->rna_path().startswith(node_rna_path)) {
784 fcurve->rna_path_set_move(
785 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[1].default_value"));
804 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
806 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
811 if (!fcurve->rna_path().startswith(node_rna_path)) {
818 fcurve->rna_path_set_move(
819 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[1].default_value"));
861 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
863 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
868 if (!fcurve->rna_path().startswith(node_rna_path)) {
875 fcurve->rna_path_set_move(
876 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[2].default_value"));
879 fcurve->rna_path_set_move(
880 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[3].default_value"));
883 fcurve->rna_path_set_move(
884 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[4].default_value"));
887 fcurve->rna_path_set_move(
888 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[5].default_value"));
908 "Neighbor Threshold",
909 "Neighbor Threshold");
919 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
921 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
926 if (!fcurve->rna_path().startswith(node_rna_path)) {
933 fcurve->rna_path_set_move(
934 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[2].default_value"));
937 fcurve->rna_path_set_move(
938 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[3].default_value"));
962 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
964 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
969 if (!fcurve->rna_path().startswith(node_rna_path)) {
976 fcurve->rna_path_set_move(
977 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[3].default_value"));
1010 node->storage =
nullptr;
1018 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
1020 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
1025 if (!fcurve->rna_path().startswith(node_rna_path)) {
1032 fcurve->rna_path_set_move(
1033 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[1].default_value"));
1036 fcurve->rna_path_set_move(
1037 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[2].default_value"));
1039 adjust_fcurve_key_frame_values(
1040 fcurve, PROP_FLOAT, [&](const float value) { return value * 10.0f; });
1042 else if (BLI_str_endswith(fcurve->rna_path().c_str(),
"corner_rounding")) {
1043 fcurve->rna_path_set_move(
1044 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[3].default_value"));
1071 node->storage =
nullptr;
1079 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
1081 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
1086 if (!fcurve->rna_path().startswith(node_rna_path)) {
1093 fcurve->rna_path_set_move(
1094 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[3].default_value"));
1097 fcurve->rna_path_set_move(
1098 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[4].default_value"));
1100 adjust_fcurve_key_frame_values(
1101 fcurve, PROP_FLOAT, [&](const float value) { return value * 2.0f; });
1132 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
1134 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
1139 if (!fcurve->rna_path().startswith(node_rna_path)) {
1146 fcurve->rna_path_set_move(
1147 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[1].default_value"));
1150 fcurve->rna_path_set_move(
1151 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[2].default_value"));
1183 node->storage =
nullptr;
1191 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
1193 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
1198 if (!fcurve->rna_path().startswith(node_rna_path)) {
1205 fcurve->rna_path_set_move(
1206 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[2].default_value"));
1209 fcurve->rna_path_set_move(
1210 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[3].default_value"));
1213 fcurve->rna_path_set_move(
1214 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[4].default_value"));
1246 node->storage =
nullptr;
1254 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
1256 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
1261 if (!fcurve->rna_path().startswith(node_rna_path)) {
1268 fcurve->rna_path_set_move(
1269 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[2].default_value"));
1272 fcurve->rna_path_set_move(
1273 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[3].default_value"));
1276 fcurve->rna_path_set_move(
1277 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[4].default_value"));
1303 node->storage =
nullptr;
1311 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
1313 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
1318 if (!fcurve->rna_path().startswith(node_rna_path)) {
1325 fcurve->rna_path_set_move(
1326 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[2].default_value"));
1329 fcurve->rna_path_set_move(
1330 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[3].default_value"));
1361 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
1363 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
1368 if (!fcurve->rna_path().startswith(node_rna_path)) {
1375 fcurve->rna_path_set_move(
1376 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[2].default_value"));
1379 fcurve->rna_path_set_move(
1380 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[3].default_value"));
1406 node->storage =
nullptr;
1414 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
1416 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
1421 if (!fcurve->rna_path().startswith(node_rna_path)) {
1428 fcurve->rna_path_set_move(
1429 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[1].default_value"));
1432 fcurve->rna_path_set_move(
1433 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[2].default_value"));
1458 "Use Spill Strength",
1459 "Use Spill Strength");
1477 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
1479 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
1484 if (!fcurve->rna_path().startswith(node_rna_path)) {
1491 fcurve->rna_path_set_move(
1492 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[2].default_value"));
1495 fcurve->rna_path_set_move(
1496 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[3].default_value"));
1499 fcurve->rna_path_set_move(
1500 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[4].default_value"));
1501 fcurve->array_index = 0;
1504 fcurve->rna_path_set_move(
1505 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[4].default_value"));
1506 fcurve->array_index = 1;
1509 fcurve->rna_path_set_move(
1510 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[4].default_value"));
1511 fcurve->array_index = 2;
1536 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
1538 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
1543 if (!fcurve->rna_path().startswith(node_rna_path)) {
1550 fcurve->rna_path_set_move(
1551 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[0].default_value"));
1570 "Preprocess Blur Size",
1571 "Preprocess Blur Size");
1611 "Postprocess Blur Size",
1612 "Postprocess Blur Size");
1622 "Postprocess Dilate Size",
1623 "Postprocess Dilate Size");
1633 "Postprocess Feather Size",
1634 "Postprocess Feather Size");
1645 "Despill Strength");
1660 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
1662 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
1667 if (!fcurve->rna_path().startswith(node_rna_path)) {
1674 fcurve->rna_path_set_move(
1675 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[2].default_value"));
1678 fcurve->rna_path_set_move(
1679 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[3].default_value"));
1682 fcurve->rna_path_set_move(
1683 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[4].default_value"));
1686 fcurve->rna_path_set_move(
1687 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[5].default_value"));
1690 fcurve->rna_path_set_move(
1691 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[6].default_value"));
1694 fcurve->rna_path_set_move(
1695 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[7].default_value"));
1698 fcurve->rna_path_set_move(
1699 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[10].default_value"));
1702 fcurve->rna_path_set_move(
1703 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[11].default_value"));
1706 fcurve->rna_path_set_move(
1707 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[12].default_value"));
1710 fcurve->rna_path_set_move(
1711 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[13].default_value"));
1714 fcurve->rna_path_set_move(
1715 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[14].default_value"));
1740 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
1742 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
1747 if (!fcurve->rna_path().startswith(node_rna_path)) {
1754 fcurve->rna_path_set_move(
1755 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[1].default_value"));
1758 fcurve->rna_path_set_move(
1759 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[2].default_value"));
1779 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
1781 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
1786 if (!fcurve->rna_path().startswith(node_rna_path)) {
1793 fcurve->rna_path_set_move(
1794 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[1].default_value"));
1831 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
1833 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
1838 if (!fcurve->rna_path().startswith(node_rna_path)) {
1845 fcurve->rna_path_set_move(
1846 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[1].default_value"));
1849 fcurve->rna_path_set_move(
1850 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[2].default_value"));
1853 fcurve->rna_path_set_move(
1854 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[3].default_value"));
1873 "Master Saturation",
1874 "Master Saturation");
1908 "Shadows Saturation",
1909 "Shadows Saturation");
1920 "Shadows Contrast");
1948 "Midtones Saturation",
1949 "Midtones Saturation");
1959 "Midtones Contrast",
1960 "Midtones Contrast");
1988 "Highlights Saturation",
1989 "Highlights Saturation");
1999 "Highlights Contrast",
2000 "Highlights Contrast");
2011 "Highlights Gamma");
2058 node->storage =
nullptr;
2066 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
2068 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
2073 if (!fcurve->rna_path().startswith(node_rna_path)) {
2080 fcurve->rna_path_set_move(
2081 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[1].default_value"));
2084 fcurve->rna_path_set_move(
2085 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[2].default_value"));
2088 fcurve->rna_path_set_move(
2089 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[3].default_value"));
2092 fcurve->rna_path_set_move(
2093 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[4].default_value"));
2096 fcurve->rna_path_set_move(
2097 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[5].default_value"));
2100 fcurve->rna_path_set_move(
2101 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[6].default_value"));
2104 fcurve->rna_path_set_move(
2105 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[7].default_value"));
2108 fcurve->rna_path_set_move(
2109 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[8].default_value"));
2112 fcurve->rna_path_set_move(
2113 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[9].default_value"));
2116 fcurve->rna_path_set_move(
2117 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[10].default_value"));
2120 fcurve->rna_path_set_move(
2121 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[11].default_value"));
2124 fcurve->rna_path_set_move(
2125 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[12].default_value"));
2128 fcurve->rna_path_set_move(
2129 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[13].default_value"));
2132 fcurve->rna_path_set_move(
2133 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[14].default_value"));
2136 fcurve->rna_path_set_move(
2137 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[15].default_value"));
2140 fcurve->rna_path_set_move(
2141 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[16].default_value"));
2144 fcurve->rna_path_set_move(
2145 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[17].default_value"));
2148 fcurve->rna_path_set_move(
2149 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[18].default_value"));
2152 fcurve->rna_path_set_move(
2153 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[19].default_value"));
2156 fcurve->rna_path_set_move(
2157 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[20].default_value"));
2160 fcurve->rna_path_set_move(
2161 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[21].default_value"));
2164 fcurve->rna_path_set_move(
2165 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[22].default_value"));
2168 fcurve->rna_path_set_move(
2169 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[23].default_value"));
2172 fcurve->rna_path_set_move(
2173 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[24].default_value"));
2176 fcurve->rna_path_set_move(
2177 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[25].default_value"));
2180 fcurve->rna_path_set_move(
2181 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[26].default_value"));
2216 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
2218 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
2223 if (!fcurve->rna_path().startswith(node_rna_path)) {
2230 fcurve->rna_path_set_move(
2231 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[3].default_value"));
2234 fcurve->rna_path_set_move(
2235 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[4].default_value"));
2238 fcurve->rna_path_set_move(BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"distortion_type"));
2272 node->storage =
nullptr;
2279 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
2281 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
2286 if (!fcurve->rna_path().startswith(node_rna_path)) {
2293 fcurve->rna_path_set_move(
2294 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[2].default_value"));
2295 fcurve->array_index = 0;
2298 fcurve->rna_path_set_move(
2299 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[2].default_value"));
2300 fcurve->array_index = 1;
2303 fcurve->rna_path_set_move(
2304 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[3].default_value"));
2305 fcurve->array_index = 0;
2308 fcurve->rna_path_set_move(
2309 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[3].default_value"));
2310 fcurve->array_index = 1;
2313 fcurve->rna_path_set_move(
2314 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[4].default_value"));
2348 node->storage =
nullptr;
2356 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
2358 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
2363 if (!fcurve->rna_path().startswith(node_rna_path)) {
2370 fcurve->rna_path_set_move(
2371 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[2].default_value"));
2372 fcurve->array_index = 0;
2375 fcurve->rna_path_set_move(
2376 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[2].default_value"));
2377 fcurve->array_index = 1;
2380 fcurve->rna_path_set_move(
2381 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[3].default_value"));
2382 fcurve->array_index = 0;
2385 fcurve->rna_path_set_move(
2386 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[3].default_value"));
2387 fcurve->array_index = 1;
2390 fcurve->rna_path_set_move(
2391 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[4].default_value"));
2418 node->storage =
nullptr;
2426 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
2428 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
2433 if (!fcurve->rna_path().startswith(node_rna_path)) {
2440 fcurve->rna_path_set_move(
2441 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[1].default_value"));
2444 fcurve->rna_path_set_move(
2445 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[2].default_value"));
2497 node->storage =
nullptr;
2505 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
2507 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
2512 if (!fcurve->rna_path().startswith(node_rna_path)) {
2519 fcurve->rna_path_set_move(
2520 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[1].default_value"));
2523 fcurve->rna_path_set_move(
2524 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[2].default_value"));
2525 fcurve->array_index = 0;
2528 fcurve->rna_path_set_move(
2529 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[2].default_value"));
2530 fcurve->array_index = 1;
2533 fcurve->rna_path_set_move(
2534 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[3].default_value"));
2537 fcurve->rna_path_set_move(
2538 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[4].default_value"));
2540 adjust_fcurve_key_frame_values(
2541 fcurve, PROP_FLOAT, [&](const float value) { return value + 1.0f; });
2543 else if (BLI_str_endswith(fcurve->rna_path().c_str(),
"distance")) {
2544 fcurve->rna_path_set_move(
2545 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[5].default_value"));
2548 fcurve->rna_path_set_move(
2549 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[6].default_value"));
2577 node->storage =
nullptr;
2585 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
2587 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
2592 if (!fcurve->rna_path().startswith(node_rna_path)) {
2599 fcurve->rna_path_set_move(
2600 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[2].default_value"));
2603 fcurve->rna_path_set_move(
2604 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[3].default_value"));
2659 *set_alpha_node,
SOCK_OUT,
"Image"_ustr);
2725 for (
bNodeLink &link : node_tree->
links.items_reversed_mutable()) {
2730 if (!
bool(link.tonode->custom1)) {
2734 if (
StringRef(link.tosock->identifier) !=
"Image") {
2740 convert_alpha_node->
location[0] = link.tonode->location[0] - link.tonode->width - 20.0f;
2741 convert_alpha_node->
location[1] = link.tonode->location[1];
2744 *convert_alpha_node,
SOCK_IN,
"Image"_ustr);
2746 *convert_alpha_node,
SOCK_IN,
"Type"_ustr);
2748 *convert_alpha_node,
SOCK_OUT,
"Image"_ustr);
2754 *node_tree, *link.fromnode, *link.fromsock, *convert_alpha_node, *convert_alpha_input);
2756 *node_tree, *convert_alpha_node, *convert_alpha_output, *link.tonode, *link.tosock);
2761 for (
bNodeLink &link : node_tree->
links.items_reversed_mutable()) {
2766 if (!
bool(link.fromnode->custom1)) {
2772 convert_alpha_node->
location[0] = link.fromnode->location[0] + link.fromnode->width + 20.0f;
2773 convert_alpha_node->
location[1] = link.fromnode->location[1];
2776 *convert_alpha_node,
SOCK_IN,
"Image"_ustr);
2778 *convert_alpha_node,
SOCK_IN,
"Type"_ustr);
2780 *convert_alpha_node,
SOCK_OUT,
"Image"_ustr);
2786 *node_tree, *link.fromnode, *link.fromsock, *convert_alpha_node, *convert_alpha_input);
2788 *node_tree, *convert_alpha_node, *convert_alpha_output, *link.tonode, *link.tosock);
2798 for (
bNodeLink &link : node_tree->
links.items_reversed_mutable()) {
2803 const float mix_factor =
static_cast<NodeTwoFloats *
>(link.tonode->storage)->
x;
2804 if (mix_factor == 0.0f) {
2808 if (
StringRef(link.tosock->identifier) !=
"Image_001") {
2813 link.tonode->custom1 =
false;
2817 mix_node->
location[0] = link.tonode->location[0] - link.tonode->width - 20.0f;
2818 mix_node->
location[1] = link.tonode->location[1];
2829 to_straight_node->parent = link.tonode->parent;
2830 to_straight_node->location[0] = mix_node->
location[0] - mix_node->
width - 20.0f;
2831 to_straight_node->location[1] = mix_node->
location[1];
2834 *to_straight_node,
SOCK_IN,
"Image"_ustr);
2837 *to_straight_node,
SOCK_OUT,
"Image"_ustr);
2844 to_premultiplied_node->parent = link.tonode->parent;
2845 to_premultiplied_node->location[0] = to_straight_node->location[0] - to_straight_node->width -
2847 to_premultiplied_node->location[1] = to_straight_node->location[1];
2850 *to_premultiplied_node,
SOCK_IN,
"Image"_ustr);
2852 *to_premultiplied_node,
SOCK_IN,
"Type"_ustr);
2854 *to_premultiplied_node,
SOCK_OUT,
"Image"_ustr);
2862 *to_premultiplied_node,
2863 *to_premultiplied_input);
2865 *to_premultiplied_node,
2866 *to_premultiplied_output,
2868 *to_straight_input);
2870 *node_tree, *to_premultiplied_node, *to_premultiplied_output, *mix_node, *mix_b_input);
2872 *node_tree, *to_straight_node, *to_straight_output, *mix_node, *mix_a_input);
2883 node.storage =
nullptr;
2904 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
2906 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
2911 if (!fcurve->rna_path().startswith(node_rna_path)) {
2918 fcurve->rna_path_set_move(
2919 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[3].default_value"));
2939 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
2941 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
2946 if (!fcurve->rna_path().startswith(node_rna_path)) {
2953 fcurve->rna_path_set_move(
2954 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[4].default_value"));
2963 for (
bNodeLink &link : node_tree->
links.items_reversed_mutable()) {
2975 const float x = link.fromnode->custom3;
2976 const float y = link.fromnode->custom4;
2977 if (
x == 0.0f &&
y == 0.0f) {
2983 translate_node->
location[0] = link.fromnode->location[0] + link.fromnode->width + 20.0f;
2984 translate_node->
location[1] = link.fromnode->location[1];
2990 *translate_node,
SOCK_IN,
"Image"_ustr);
2994 *translate_node,
SOCK_OUT,
"Image"_ustr);
3000 *node_tree, *link.fromnode, *link.fromsock, *translate_node, *translate_image_input);
3002 *node_tree, *translate_node, *translate_image_output, *link.tonode, *link.tosock);
3015 int bytes_processed = 0;
3016 while (bytes_processed < string_array_length &&
string[bytes_processed] !=
'\0') {
3017 if (
string[bytes_processed] ==
'{') {
3019 string, string_array_length, bytes_processed, bytes_processed + 1,
"{{");
3020 bytes_processed += 2;
3023 if (
string[bytes_processed] ==
'}') {
3025 string, string_array_length, bytes_processed, bytes_processed + 1,
"}}");
3026 bytes_processed += 2;
3037 for (
bNodeLink &link : node_tree->
links.items_reversed_mutable()) {
3057 if (
StringRef(link.tosock->identifier) !=
"Image") {
3063 gamma_node->
location[0] = link.tonode->location[0] - link.tonode->width - 20.0f;
3064 gamma_node->
location[1] = link.tonode->location[1];
3078 for (
bNodeLink &link : node_tree->
links.items_reversed_mutable()) {
3100 gamma_node->
location[0] = link.fromnode->location[0] + link.fromnode->width + 20.0f;
3101 gamma_node->
location[1] = link.fromnode->location[1];
3129 if (!
STREQ(
node.idname,
"CompositorNodeOutputFile")) {
3152 if (!
STREQ(
node.idname,
"CompositorNodeTranslate")) {
3164 if (!
bool(
data->relative)) {
3198 nullptr, *node_tree,
"CompositorNodeRelativeToPixel"_ustr);
3199 x_relative_to_pixel_node->
parent =
node.parent;
3200 x_relative_to_pixel_node->
location[0] =
node.location[0] -
node.width - 20.0f;
3201 x_relative_to_pixel_node->
location[1] =
node.location[1];
3207 *x_relative_to_pixel_node,
SOCK_IN,
"Image"_ustr);
3209 *x_relative_to_pixel_node,
SOCK_IN,
"Float Value"_ustr);
3211 *x_relative_to_pixel_node,
SOCK_OUT,
"Float Value"_ustr);
3221 *x_relative_to_pixel_node,
3228 *x_relative_to_pixel_node,
3236 nullptr, *node_tree,
"CompositorNodeRelativeToPixel"_ustr);
3237 y_relative_to_pixel_node->
parent =
node.parent;
3238 y_relative_to_pixel_node->
location[0] =
node.location[0] -
node.width - 20.0f;
3239 y_relative_to_pixel_node->
location[1] =
node.location[1] - 20.0f;
3245 *y_relative_to_pixel_node,
SOCK_IN,
"Image"_ustr);
3247 *y_relative_to_pixel_node,
SOCK_IN,
"Float Value"_ustr);
3249 *y_relative_to_pixel_node,
SOCK_OUT,
"Float Value"_ustr);
3259 *y_relative_to_pixel_node,
3266 *y_relative_to_pixel_node,
3325 if (!
bool(
node->custom2) || !image_link) {
3327 node->storage =
nullptr;
3332 nullptr, *node_tree,
"CompositorNodeRelativeToPixel"_ustr);
3333 x_relative_to_pixel_node->
parent =
node->parent;
3334 x_relative_to_pixel_node->
location[0] =
node->location[0] -
node->width - 20.0f;
3335 x_relative_to_pixel_node->
location[1] =
node->location[1];
3341 *x_relative_to_pixel_node,
SOCK_IN,
"Image"_ustr);
3343 *x_relative_to_pixel_node,
SOCK_IN,
"Float Value"_ustr);
3345 *x_relative_to_pixel_node,
SOCK_OUT,
"Float Value"_ustr);
3354 *x_relative_to_pixel_node,
3358 nullptr, *node_tree,
"CompositorNodeRelativeToPixel"_ustr);
3359 y_relative_to_pixel_node->
parent =
node->parent;
3360 y_relative_to_pixel_node->
location[0] =
node->location[0] -
node->width - 20.0f;
3361 y_relative_to_pixel_node->
location[1] =
node->location[1] - 10;
3367 *y_relative_to_pixel_node,
SOCK_IN,
"Image"_ustr);
3369 *y_relative_to_pixel_node,
SOCK_IN,
"Float Value"_ustr);
3371 *y_relative_to_pixel_node,
SOCK_OUT,
"Float Value"_ustr);
3380 *y_relative_to_pixel_node,
3384 nullptr, *node_tree,
"CompositorNodeRelativeToPixel"_ustr);
3385 width_relative_to_pixel_node->
parent =
node->parent;
3386 width_relative_to_pixel_node->
location[0] =
node->location[0] -
node->width - 20.0f;
3387 width_relative_to_pixel_node->
location[1] =
node->location[1] - 20;
3393 *width_relative_to_pixel_node,
SOCK_IN,
"Image"_ustr);
3395 *width_relative_to_pixel_node,
SOCK_IN,
"Float Value"_ustr);
3397 *width_relative_to_pixel_node,
SOCK_OUT,
"Float Value"_ustr);
3404 *node_tree, *width_relative_to_pixel_node, *width_value_output, *
node, *width_input);
3408 *width_relative_to_pixel_node,
3409 *width_image_input);
3412 nullptr, *node_tree,
"CompositorNodeRelativeToPixel"_ustr);
3413 height_relative_to_pixel_node->
parent =
node->parent;
3414 height_relative_to_pixel_node->
location[0] =
node->location[0] -
node->width - 20.0f;
3415 height_relative_to_pixel_node->
location[1] =
node->location[1] - 30;
3421 *height_relative_to_pixel_node,
SOCK_IN,
"Image"_ustr);
3423 *height_relative_to_pixel_node,
SOCK_IN,
"Float Value"_ustr);
3425 *height_relative_to_pixel_node,
SOCK_OUT,
"Float Value"_ustr);
3432 *node_tree, *height_relative_to_pixel_node, *height_value_output, *
node, *height_input);
3436 *height_relative_to_pixel_node,
3437 *height_image_input);
3440 node->storage =
nullptr;
3447 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
3449 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
3454 if (!fcurve->rna_path().startswith(node_rna_path)) {
3461 fcurve->rna_path_set_move(
3462 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[1].default_value"));
3465 fcurve->rna_path_set_move(
3466 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[2].default_value"));
3469 fcurve->rna_path_set_move(
3470 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[3].default_value"));
3473 fcurve->rna_path_set_move(
3474 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[4].default_value"));
3477 fcurve->rna_path_set_move(
3478 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[5].default_value"));
3479 adjust_fcurve_key_frame_values(
3480 fcurve, PROP_BOOLEAN, [&](const float value) { return 1.0f - value; });
3541 "Input Temperature",
3558 "Output Temperature",
3570 node->storage =
nullptr;
3578 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
3580 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
3585 if (!fcurve->rna_path().startswith(node_rna_path)) {
3592 fcurve->rna_path_set_move(
3593 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[3].default_value"));
3596 fcurve->rna_path_set_move(
3597 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[5].default_value"));
3600 fcurve->rna_path_set_move(
3601 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[7].default_value"));
3604 fcurve->rna_path_set_move(
3605 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[8].default_value"));
3608 fcurve->rna_path_set_move(
3609 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[9].default_value"));
3612 fcurve->rna_path_set_move(
3613 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[11].default_value"));
3616 fcurve->rna_path_set_move(
3617 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[13].default_value"));
3620 fcurve->rna_path_set_move(
3621 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[14].default_value"));
3624 fcurve->rna_path_set_move(
3625 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[15].default_value"));
3628 fcurve->rna_path_set_move(
3629 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[16].default_value"));
3632 fcurve->rna_path_set_move(
3633 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[17].default_value"));
3643 if (!
STREQ(
node.idname,
"CompositorNodeImageInfo")) {
3648 bNodeLink *output_texture_link =
nullptr;
3657 output_texture_link = &link;
3661 output_pixel_link = &link;
3665 if (!output_texture_link && !output_pixel_link) {
3670 nullptr, *node_tree,
"CompositorNodeImageCoordinates"_ustr);
3671 image_coordinates_node->
parent =
node.parent;
3672 image_coordinates_node->
location[0] =
node.location[0];
3673 image_coordinates_node->
location[1] =
node.location[1] -
node.height - 10.0f;
3677 *image_coordinates_node,
SOCK_IN,
"Image"_ustr);
3681 *image_coordinates_node,
3685 if (output_texture_link) {
3687 *image_coordinates_node,
SOCK_OUT,
"Uniform"_ustr);
3689 *image_coordinates_node,
3691 *output_texture_link->
tonode,
3692 *output_texture_link->
tosock);
3696 if (output_pixel_link) {
3698 *image_coordinates_node,
SOCK_OUT,
"Pixel"_ustr);
3700 *image_coordinates_node,
3702 *output_pixel_link->
tonode,
3703 *output_pixel_link->
tosock);
3724 if (!base_typeinfo) {
3730 sockets_to_remove.
append(&interface_socket);
3826 *node_tree, *size_link->
fromnode, *size_link->
fromsock, *multiply_node, *scale_input);
3828 *node_tree, *multiply_node, *vector_output, *
node, *size_input);
3830 size_link = &new_link;
3834 if (!
bool(
storage->relative) || !image_link) {
3839 nullptr, *node_tree,
"CompositorNodeRelativeToPixel"_ustr);
3840 relative_to_pixel_node->
parent =
node->parent;
3841 relative_to_pixel_node->
location[0] =
node->location[0] -
node->width - 20.0f;
3842 relative_to_pixel_node->
location[1] =
node->location[1];
3853 relative_to_pixel_node->
custom2 =
3863 *relative_to_pixel_node,
SOCK_IN,
"Vector Value"_ustr);
3865 *relative_to_pixel_node,
SOCK_OUT,
"Vector Value"_ustr);
3870 *relative_to_pixel_node,
3876 *relative_to_pixel_node,
3895 char escaped_node_name[
sizeof(
node->name) * 2 + 1];
3897 const std::string node_rna_path = fmt::format(
"nodes[\"{}\"]", escaped_node_name);
3902 if (!fcurve->rna_path().startswith(node_rna_path)) {
3909 fcurve->rna_path_set_move(
3910 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[1].default_value"));
3911 fcurve->array_index = 0;
3914 fcurve->rna_path_set_move(
3915 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[1].default_value"));
3916 fcurve->array_index = 1;
3919 fcurve->rna_path_set_move(
3920 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[2].default_value"));
3923 fcurve->rna_path_set_move(
3924 BLI_sprintfN(
"%s.%s", node_rna_path.c_str(),
"inputs[3].default_value"));
3925 adjust_fcurve_key_frame_values(
3926 fcurve, PROP_BOOLEAN, [&](const float value) { return 1.0f - value; });
3992 links_to_level_and_max_inputs.
add(link.
tosock, &link);
4010 !links_to_level_and_max_inputs.
contains(max_input_socket))
4024 tree, clamp_node,
SOCK_IN,
"NodeSocketFloat",
"Value");
4026 tree, clamp_node,
SOCK_IN,
"NodeSocketFloat",
"Min");
4028 tree, clamp_node,
SOCK_IN,
"NodeSocketFloat",
"Max");
4030 tree, clamp_node,
SOCK_OUT,
"NodeSocketFloat",
"Result");
4035 link->
tosock = &clamp_value_input;
4041 value->
value = std::clamp(value->
value, 0, 11);
4079 for (ID *slot_user : slot_users) {
4080 PointerRNA slot_user_ptr = RNA_id_pointer_create(slot_user);
4083 if (!RNA_path_resolve_property(&slot_user_ptr, fcurve.rna_path().c_str(), &ptr, &prop))
4088 animrig::update_autoflags_fcurve_direct(&fcurve, RNA_property_type(prop));
4101 for (bAction &dna_action : bmain->actions) {
4102 animrig::Action &action = dna_action.wrap();
4103 animrig::foreach_fcurve_in_action(
4104 action, [&](FCurve &fcurve) { version_fix_fcurve_noise_offset(fcurve); });
4108 for (FCurve &fcurve : adt->drivers) {
4111 for (NlaTrack &track : adt->nla_tracks) {
4119 if (node_tree->type == NTREE_COMPOSIT) {
4120 for (bNode &
node : node_tree->nodes) {
4132 if (node_tree->type == NTREE_COMPOSIT) {
4133 for (bNode &
node : node_tree->nodes) {
4145 if (node_tree->type == NTREE_COMPOSIT) {
4146 for (bNode &
node : node_tree->nodes) {
4158 if (node_tree->type == NTREE_COMPOSIT) {
4159 for (bNode &
node : node_tree->nodes) {
4171 if (node_tree->type == NTREE_COMPOSIT) {
4172 for (bNode &
node : node_tree->nodes) {
4184 if (node_tree->type == NTREE_COMPOSIT) {
4185 for (bNode &
node : node_tree->nodes) {
4197 if (node_tree->type == NTREE_COMPOSIT) {
4198 for (bNode &
node : node_tree->nodes) {
4210 if (node_tree->type == NTREE_COMPOSIT) {
4211 for (bNode &
node : node_tree->nodes) {
4223 if (node_tree->type == NTREE_COMPOSIT) {
4224 for (bNode &
node : node_tree->nodes) {
4236 if (node_tree->type == NTREE_COMPOSIT) {
4237 for (bNode &
node : node_tree->nodes) {
4249 if (node_tree->type == NTREE_COMPOSIT) {
4250 for (bNode &
node : node_tree->nodes) {
4262 if (node_tree->type == NTREE_COMPOSIT) {
4263 for (bNode &
node : node_tree->nodes) {
4275 if (node_tree->type == NTREE_COMPOSIT) {
4276 for (bNode &
node : node_tree->nodes) {
4288 if (node_tree->type == NTREE_COMPOSIT) {
4289 for (bNode &
node : node_tree->nodes) {
4301 if (node_tree->type == NTREE_COMPOSIT) {
4302 for (bNode &
node : node_tree->nodes) {
4314 if (node_tree->type == NTREE_COMPOSIT) {
4315 for (bNode &
node : node_tree->nodes) {
4327 if (node_tree->type == NTREE_COMPOSIT) {
4328 for (bNode &
node : node_tree->nodes) {
4340 if (node_tree->type == NTREE_COMPOSIT) {
4341 for (bNode &
node : node_tree->nodes) {
4353 if (node_tree->type == NTREE_COMPOSIT) {
4354 for (bNode &
node : node_tree->nodes) {
4366 if (node_tree->type == NTREE_COMPOSIT) {
4367 for (bNode &
node : node_tree->nodes) {
4379 if (node_tree->type == NTREE_COMPOSIT) {
4380 for (bNode &
node : node_tree->nodes) {
4392 if (node_tree->type == NTREE_COMPOSIT) {
4393 for (bNode &
node : node_tree->nodes) {
4405 if (node_tree->type == NTREE_COMPOSIT) {
4406 for (bNode &
node : node_tree->nodes) {
4418 if (node_tree->type == NTREE_COMPOSIT) {
4419 for (bNode &
node : node_tree->nodes) {
4431 if (node_tree->type == NTREE_COMPOSIT) {
4432 for (bNode &
node : node_tree->nodes) {
4444 if (node_tree->type == NTREE_COMPOSIT) {
4445 for (bNode &
node : node_tree->nodes) {
4457 if (node_tree->type == NTREE_COMPOSIT) {
4458 for (bNode &
node : node_tree->nodes) {
4470 if (node_tree->type == NTREE_COMPOSIT) {
4471 for (bNode &
node : node_tree->nodes) {
4483 if (node_tree->type == NTREE_COMPOSIT) {
4484 for (bNode &
node : node_tree->nodes) {
4496 if (node_tree->type == NTREE_COMPOSIT) {
4497 for (bNode &
node : node_tree->nodes) {
4509 if (node_tree->type == NTREE_COMPOSIT) {
4510 for (bNode &
node : node_tree->nodes) {
4522 if (node_tree->type == NTREE_COMPOSIT) {
4523 for (bNode &
node : node_tree->nodes) {
4535 if (node_tree->type == NTREE_COMPOSIT) {
4536 for (bNode &
node : node_tree->nodes) {
4548 if (node_tree->type == NTREE_COMPOSIT) {
4549 for (bNode &
node : node_tree->nodes) {
4561 if (node_tree->type == NTREE_COMPOSIT) {
4562 for (bNode &
node : node_tree->nodes) {
4574 if (node_tree->type == NTREE_COMPOSIT) {
4575 for (bNode &
node : node_tree->nodes) {
4587 if (node_tree->type == NTREE_COMPOSIT) {
4588 for (bNode &
node : node_tree->nodes) {
4600 if (node_tree->type == NTREE_COMPOSIT) {
4601 for (bNode &
node : node_tree->nodes) {
4613 if (node_tree->type == NTREE_COMPOSIT) {
4614 for (bNode &
node : node_tree->nodes) {
4625 ToolSettings toolsettings_default = {};
4626 for (
Scene &scene : bmain->scenes) {
4627 scene.toolsettings->snap_playhead_mode = toolsettings_default.snap_playhead_mode;
4628 scene.toolsettings->snap_step_frames = toolsettings_default.snap_step_frames;
4629 scene.toolsettings->snap_step_seconds = toolsettings_default.snap_step_seconds;
4630 scene.toolsettings->playhead_snap_distance = toolsettings_default.playhead_snap_distance;
4636 if (node_tree->type == NTREE_COMPOSIT) {
4637 for (bNode &
node : node_tree->nodes) {
4649 if (node_tree->type == NTREE_COMPOSIT) {
4650 for (bNode &
node : node_tree->nodes) {
4672 if (
STREQ(
node.idname,
"GeometryNodeCurveToMesh")) {
4673 curve_to_mesh_nodes.
add(&
node);
4677 for (
bNode *curve_to_mesh : curve_to_mesh_nodes) {
4696 MEM_new<NodeGeometryInputNamedAttribute>(__func__);
4698 named_attribute.storage = named_attribute_storage;
4699 named_attribute.parent = curve_to_mesh->parent;
4700 named_attribute.location[0] = curve_to_mesh->location[0] - 25;
4701 named_attribute.location[1] = curve_to_mesh->location[1];
4714 NodeSwitch *switch_storage = MEM_new<NodeSwitch>(__func__);
4716 switch_node.
storage = switch_storage;
4718 switch_node.
location[0] = curve_to_mesh->location[0] - 25;
4719 switch_node.
location[1] = curve_to_mesh->location[1];
4769 if (scene.
ed !=
nullptr) {
4813 if (sima->
flag & SI_NO_DRAW_TEXPAINT) {
4830 const char *workspace_name = screen.
id.
name + 2;
4834 if (
STREQ(workspace_name,
"UV Editing")) {
4847 SCULPT_BRUSH_TYPE_FLATTEN,
4848 SCULPT_BRUSH_TYPE_FILL,
4849 SCULPT_BRUSH_TYPE_SCRAPE))
4851 if (
brush.sculpt_brush_type == SCULPT_BRUSH_TYPE_FLATTEN) {
4852 brush.plane_height = 1.0f;
4853 brush.plane_depth = 1.0f;
4854 brush.area_radius_factor = 1.0f;
4858 if (
brush.sculpt_brush_type == SCULPT_BRUSH_TYPE_FILL) {
4859 brush.plane_height = 0.0f;
4860 brush.plane_depth = 1.0f;
4866 if (
brush.sculpt_brush_type == SCULPT_BRUSH_TYPE_SCRAPE) {
4867 brush.plane_height = 1.0f;
4868 brush.plane_depth = 0.0f;
4885 brush.plane_offset *= -1.0f;
4925 animrig::ANIM_armature_foreach_bone(
4926 &arm.
bonebase, [](
Bone *bone) { bone->drawtype = ARM_DRAW_TYPE_ARMATURE_DEFINED; });
4965 if (
STREQ(
node.idname,
"GeometryNodeStoreNamedGrid")) {
4966 switch (
node.custom1) {
5009 if (
node.storage !=
nullptr) {
5408 for (
ARegion ®ion : *regionbase) {
5548 animrig::ANIM_armature_foreach_bone(&arm.
bonebase, [](
Bone *bone) {
5549 if (bone->parent && (bone->flag & BONE_CONNECTED)) {
5550 bone->rad_head = bone->parent->rad_tail;
5565 if (node_tree->type == NTREE_COMPOSIT) {
5566 for (bNode &
node : node_tree->nodes) {
5568 do_version_sun_beams_node_options_to_inputs(node_tree, &
node);
5578 if (node_tree->type == NTREE_COMPOSIT) {
5579 for (bNode &
node : node_tree->nodes) {
5591 if (node_tree->type == NTREE_COMPOSIT) {
5592 for (bNode &
node : node_tree->nodes) {
5604 if (node_tree->type == NTREE_COMPOSIT) {
5613 if (node_tree->type == NTREE_COMPOSIT) {
5622 if (node_tree->type == NTREE_COMPOSIT) {
5631 if (node_tree->type == NTREE_COMPOSIT) {
5632 for (bNode &
node : node_tree->nodes) {
5643 for (bScreen &screen : bmain->screens) {
5644 for (ScrArea &area : screen.areabase) {
5645 for (SpaceLink &sl : area.spacedata) {
5646 if (sl.spacetype == SPACE_SEQ) {
5647 ListBaseT<ARegion> *regionbase = (&sl == area.spacedata.first_) ? &area.regionbase :
5649 for (ARegion ®ion : *regionbase) {
5650 if (region.regiontype == RGN_TYPE_WINDOW) {
5662 for (bScreen &screen : bmain->screens) {
5663 for (ScrArea &area : screen.areabase) {
5664 for (SpaceLink &sl : area.spacedata) {
5665 if (sl.spacetype == SPACE_SEQ) {
5666 SpaceSeq *space_sequencer =
reinterpret_cast<SpaceSeq *
>(&sl);
5667 space_sequencer->draw_flag &= ~SEQ_DRAW_UNUSED_0;
5678 for (
Scene &scene : bmain->scenes) {
5680 if (scene.nodetree) {
5685 for (bNodeTree &nodetree : bmain->nodetrees) {
5693 for (Brush &brush : bmain->brushes) {
5694 if (brush.tip_scale_x == 0.0f) {
5695 brush.tip_scale_x = 1.0f;
5702 if (node_tree->type == NTREE_COMPOSIT) {
5703 for (bNode &
node : node_tree->nodes) {
5715 if (node_tree->type == NTREE_COMPOSIT) {
5724 if (node_tree->type == NTREE_COMPOSIT) {
5739 for (Curve &cu : bmain->curves) {
5740 if (
ELEM(cu.ob_type, OB_CURVES_LEGACY, OB_FONT, OB_SURF)) {
5748 for (
const Nurb &nu : cu.nurb) {
5755 cu.ob_type = ob_type;
5761 if (node_tree->type == NTREE_COMPOSIT) {
5770 if (node_tree->type == NTREE_COMPOSIT) {
5771 for (bNode &
node : node_tree->nodes) {
5782 for (
Light &light : bmain->lights) {
5783 if (light.temperature == 0.0f) {
5784 light.temperature = 6500.0f;
5791 if (node_tree->type == NTREE_COMPOSIT) {
5792 for (bNode &
node : node_tree->nodes) {
5804 if (node_tree->type == NTREE_COMPOSIT) {
5813 if (
ELEM(
GS(id->name), ID_MA, ID_LA, ID_WO, ID_TE, ID_SCE, ID_LS)) {
5826 if (node_tree->type == NTREE_COMPOSIT) {
5827 for (bNode &
node : node_tree->nodes) {
5838 for (bNodeTree &ntree : bmain->nodetrees) {
5839 if (ntree.type == NTREE_GEOMETRY) {
5846 for (
Object &ob : bmain->objects) {
5848 ob.soft->fuzzyness = std::max<int>(1, ob.soft->fuzzyness);
5854 for (
Scene &scene : bmain->scenes) {
5858 for (Brush &brush : bmain->brushes) {
5859 if (brush.gpencil_settings) {
5867 if (node_tree->type == NTREE_COMPOSIT) {
5868 for (bNode &
node : node_tree->nodes) {
5884 if (tree->type == NTREE_GEOMETRY) {
Functions and classes to work with Actions.
Functionality to iterate an Action in various ways.
Low-level operations for curves.
CustomData interface, see also DNA_customdata_types.h.
Low-level operations for grease pencil.
#define MAIN_VERSION_FILE_ATLEAST(main, ver, subver)
#define FOREACH_NODETREE_END
#define FOREACH_NODETREE_BEGIN(bmain, _nodetree, _id)
#define CMP_NODE_PREMULKEY
#define GEO_NODE_SUBDIVISION_SURFACE
#define CMP_NODE_COLOR_SPILL
#define CMP_NODE_DESPECKLE
#define CMP_NODE_LUMA_MATTE
#define CMP_NODE_CORNERPIN
#define CMP_NODE_KEYINGSCREEN
#define CMP_NODE_MASK_ELLIPSE
#define GEO_NODE_SUBDIVIDE_MESH
#define CMP_NODE_BILATERALBLUR
#define CMP_NODE_TRANSLATE
#define CMP_NODE_COLORBALANCE
#define CMP_NODE_BOKEHIMAGE
#define CMP_NODE_KUWAHARA
#define CMP_NODE_DIFF_MATTE
#define CMP_NODE_ALPHAOVER
#define CMP_NODE_CHROMA_MATTE
#define CMP_NODE_PLANETRACKDEFORM
#define CMP_NODE_DILATEERODE
#define CMP_NODE_BOKEHBLUR
#define CMP_NODE_LENSDIST
#define CMP_NODE_ZCOMBINE
#define CMP_NODE_SUNBEAMS_DEPRECATED
#define CMP_NODE_COLORCORRECTION
#define CMP_NODE_SETALPHA
#define CMP_NODE_STABILIZE2D
#define CMP_NODE_PIXELATE
#define CMP_NODE_COMPOSITE_DEPRECATED
#define CMP_NODE_MASK_BOX
#define CMP_NODE_ANTIALIASING
#define CMP_NODE_COLOR_MATTE
#define CMP_NODE_DIST_MATTE
#define CMP_NODE_BRIGHTCONTRAST
#define CMP_NODE_CHANNEL_MATTE
#define BLI_assert_unreachable()
#define BLI_assert_msg(a, msg)
bool add(const Key &key, const Value &value)
const Value & lookup(const Key &key) const
Value lookup_default(const Key &key, const Value &default_value) const
void add_new(const Key &key, const Value &value)
bool contains(const Key &key) const
constexpr bool is_empty() const
void append(const T &value)
Span< const Slot * > slots() const
bke::CurvesGeometry & strokes_for_write()
#define storage(slot, qualifiers)
void foreach_fcurve_in_action_slot(Action &action, slot_handle_t handle, FunctionRef< void(FCurve &fcurve)> callback)
T & get_item_as(bNodeTreeInterfaceItem &item)
T & get_socket_data_as(bNodeTreeInterfaceSocket &item)
void node_modify_socket_type_static(bNodeTree *ntree, bNode *node, bNodeSocket *sock, int type, int subtype)
void node_remove_link(bNodeTree *ntree, bNodeLink &link)
bNode * node_add_node(const bContext *C, bNodeTree &ntree, UString idname, std::optional< int > unique_identifier=std::nullopt)
bNodeSocketType * node_socket_type_find(StringRef idname)
bNode * node_add_static_node(const bContext *C, bNodeTree &ntree, int type)
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)
BLI_INLINE Texture * wrap(MTLTexture *texture)
void foreach_strip(ListBaseT< Strip > *seqbase, ForEachFunc callback, void *user_data)
SequencerToolSettings * tool_settings_ensure(Scene *scene)
bool version_node_ensure_storage_or_invalidate(bNode &node)
static void do_version_split_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
@ CMP_NODE_RELATIVE_TO_PIXEL_REFERENCE_DIMENSION_X
@ CMP_NODE_RELATIVE_TO_PIXEL_REFERENCE_DIMENSION_PER_DIMENSION
@ CMP_NODE_RELATIVE_TO_PIXEL_REFERENCE_DIMENSION_Y
static void do_version_mask_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
bool version_node_socket_is_used(bNodeSocket *sock)
static void do_version_invert_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
static void do_version_replace_image_info_node_coordinates(bNodeTree *node_tree)
static void do_version_z_combine_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
static void do_version_alpha_over_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
char * STRNCPY(char(&dst)[N], const char *src)
static void do_version_bilateral_blur_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
static void do_version_inpaint_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
static void do_convert_gp_jitter_flags(Brush *brush)
static void do_version_color_spill_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
MINLINE void copy_v3_v3(float r[3], const float a[3])
static void do_version_bilateral_blur_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
@ V2D_ZOOM_IGNORE_KEEPOFS
static void do_version_bright_contrast_remove_premultiplied(bNodeTree *node_tree)
@ CMP_NODE_RELATIVE_TO_PIXEL_DATA_TYPE_FLOAT
@ CMP_NODE_RELATIVE_TO_PIXEL_DATA_TYPE_VECTOR
static void do_version_composite_viewer_remove_alpha(bNodeTree *node_tree)
int bool bool BLI_str_endswith(const char *__restrict str, const char *__restrict end) ATTR_NONNULL(1
@ CMP_NODE_ALPHA_CONVERT_PREMULTIPLY
@ CMP_NODE_ALPHA_CONVERT_UNPREMULTIPLY
static void do_version_color_spill_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
void BKE_fcurves_id_cb(struct ID *id, FunctionRef< void(ID *, FCurve *)> func)
static void do_version_despeckle_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
static void fix_curve_nurbs_knot_mode_custom(Main *bmain)
static void do_version_color_matte_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
float version_cycles_property_float(IDProperty *idprop, const char *name, float default_value)
static void version_escape_curly_braces(char string[], const int string_array_length)
@ BRUSH_COLOR_JITTER_USE_SAT_RAND_PRESS
@ BRUSH_COLOR_JITTER_USE_HUE_AT_STROKE
@ BRUSH_COLOR_JITTER_USE_VAL_AT_STROKE
@ BRUSH_COLOR_JITTER_USE_HUE_RAND_PRESS
@ BRUSH_COLOR_JITTER_USE_SAT_AT_STROKE
@ BRUSH_COLOR_JITTER_USE_VAL_RAND_PRESS
static void clamp_subdivision_node_level_input(bNodeTree &tree)
static void asset_browser_add_list_view(Main *bmain)
static void do_version_difference_matte_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
static void do_version_bokeh_blur_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
static void do_version_vector_sockets_dimensions(bNodeTree *node_tree)
static void do_version_id_mask_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
static void do_version_denoise_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
static void do_version_id_mask_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
static void do_version_kuwahara_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
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
static void do_version_z_combine_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
static void do_init_default_jitter_curves_in_unified_paint_settings(ToolSettings *ts)
static void do_version_lens_distortion_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
static void do_version_box_mask_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
static void do_version_mask_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
static void do_version_split_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
@ BRUSH_PLANE_INVERT_DISPLACEMENT
@ BRUSH_PLANE_SWAP_HEIGHT_AND_DEPTH
bNode & version_node_add_empty(bNodeTree &ntree, const char *idname)
static void do_version_crop_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
@ SCULPT_BRUSH_TYPE_PLANE
@ STRIP_TYPE_OVERDROP_REMOVED
static void do_version_despeckle_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
void version_socket_update_is_used(bNodeTree *ntree)
static void do_version_difference_matte_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
size_t BLI_string_replace_range(char *string, size_t string_maxncpy, int src_beg, int src_end, const char *dst)
@ CMP_NODE_SETALPHA_MODE_REPLACE_ALPHA
static void do_version_luminance_matte_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
static void do_version_scale_node_remove_translate(bNodeTree *node_tree)
static void do_version_pixelate_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
static void do_version_plane_track_deform_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
static void do_version_vector_blur_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
@ CMP_NODE_LENS_DISTORTION_HORIZONTAL
@ CMP_NODE_LENS_DISTORTION_RADIAL
static void do_version_crop_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
@ CMP_NODE_OUTPUT_IGNORE_ALPHA
static void do_version_lens_distortion_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
static void do_version_stabilize_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
static void do_version_new_glare_clamp_input(bNodeTree *node_tree)
static void do_version_switch_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
static void do_version_color_correction_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
BMesh const char void * data
static void do_version_color_balance_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
static bool strip_effect_overdrop_to_alphaover(Strip *strip, void *)
@ VOLUME_GRID_VECTOR_FLOAT
static void node_interface_single_value_to_structure_type(bNodeTreeInterfaceItem &item)
static void do_version_bokeh_image_node_options_to_inputs_animation(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_blur_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
static void do_version_pixelate_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
static void do_version_anti_alias_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
@ CMP_NODE_MASK_FLAG_MOTION_BLUR
@ CMP_NODE_MASK_FLAG_NO_FEATHER
static void version_sequencer_update_overdrop(Main *bmain)
static void do_version_glare_node_star_45_option_to_input(bNodeTree *node_tree, bNode *node)
@ FILE_ASSET_IMPORT_INSTANCE_COLLECTIONS_ON_LINK
static void do_version_time_curve_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
static void do_version_alpha_over_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
static void do_version_bokeh_image_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
static void do_version_dilate_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
static void do_version_distance_matte_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
static void do_version_plane_track_deform_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
static void version_escape_curly_braces_in_compositor_file_output_nodes(bNodeTree &nodetree)
@ CMP_NODE_INTERPOLATION_ANISOTROPIC
@ CMP_NODE_INTERPOLATION_BILINEAR
void version_node_tree_clear_interface(bNodeTree &ntree)
static void do_version_translate_node_remove_relative(bNodeTree *node_tree)
static void do_version_color_correction_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
static void do_version_stabilize_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
static void version_show_texpaint_to_show_uv(Main *bmain)
static void do_version_alpha_over_remove_premultiply(bNodeTree *node_tree)
static void do_version_kuwahara_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
static void do_version_node_curve_to_mesh_scale_input(bNodeTree *tree)
static void do_version_vector_blur_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
static void do_version_inpaint_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
static void do_version_color_balance_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
@ STRIP_BLEND_OVERDROP_REMOVED
static void do_version_time_curve_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
static void do_version_keying_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
static void do_version_anti_alias_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
static void version_fix_fcurve_noise_offset(FCurve &fcurve)
static void do_version_tone_map_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
static void do_version_switch_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
static void do_version_blur_defocus_nodes_remove_gamma(bNodeTree *node_tree)
static void do_version_sun_beams_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
ID_Type GS(const char *name)
void * CustomData_get_layer_named_for_write(CustomData *data, eCustomDataType type, StringRef name, int totelem)
IDProperty * version_cycles_properties_from_ID(ID *id)
static void do_version_denoise_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
@ SEQ_SNAP_TO_FRAME_RANGE
static void do_version_distance_matte_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
static void nlastrips_apply_fcurve_versioning(ListBaseT< NlaStrip > &strips)
static void do_version_directional_blur_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
CurveMapping * BKE_paint_default_curve()
@ CMP_NODE_SCALE_RENDER_SIZE
@ BRUSH_INVERT_TO_SCRAPE_FILL
static void do_version_glare_node_star_45_option_to_input_animation(bNodeTree *node_tree, bNode *node)
static void do_version_keying_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
MINLINE void copy_v4_v4(float r[4], const float a[4])
@ CMP_NODE_BLUR_ASPECT_NONE
static void do_version_luminance_matte_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
static void do_version_channel_matte_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
static void do_version_tone_map_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
static void version_convert_sculpt_planar_brushes(Main *bmain)
static void do_version_keying_screen_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
@ NODE_INTERFACE_SOCKET_SINGLE_VALUE_ONLY_LEGACY
static void do_version_directional_blur_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
void do_versions_after_linking_405(FileData *fd, Main *bmain)
static void version_set_uv_face_overlay_defaults(Main *bmain)
static void do_version_dilate_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
static void version_set_default_bone_drawtype(Main *bmain)
static void do_version_blur_node_options_to_inputs_animation(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)
static void do_version_ellipse_mask_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
static void do_version_chroma_matte_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
bNodeLink & version_node_add_link(bNodeTree &ntree, bNode &node_a, bNodeSocket &socket_a, bNode &node_b, bNodeSocket &socket_b)
static void do_version_flip_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
static void do_version_sun_beams_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
static void do_version_chroma_matte_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
int BLI_str_utf8_invalid_strip(char *str, size_t str_len) ATTR_NONNULL(1)
static void do_version_box_mask_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
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 void do_version_channel_matte_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
static void do_version_invert_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
void blo_do_versions_405(FileData *fd, Library *lib, Main *bmain)
bNodeSocket & version_node_add_socket(bNodeTree &ntree, bNode &node, const eNodeSocketInOut in_out, const char *idname, const char *identifier)
static void do_version_color_matte_node_options_to_inputs(bNodeTree *node_tree, bNode *node)
static void do_version_bokeh_blur_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
static void do_version_keying_screen_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
static void do_version_ellipse_mask_node_options_to_inputs_animation(bNodeTree *node_tree, bNode *node)
ListBaseT< Strip > seqbase
ListBaseT< FModifier > modifiers
FileSelectParams base_params
eFileAssetImportFlags import_flags
unsigned short list_column_size
unsigned short list_thumbnail_size
eFileDetails details_flags
ListBaseT< bArmature > armatures
ListBaseT< bNodeTree > nodetrees
ListBaseT< Curves > hair_curves
ListBaseT< Brush > brushes
ListBaseT< Object > objects
ListBaseT< Image > images
ListBaseT< bAction > actions
ListBaseT< Scene > scenes
ListBaseT< GreasePencil > grease_pencils
ListBaseT< bScreen > screens
DNA_DEPRECATED char gamma
DNA_DEPRECATED char gamco
DNA_DEPRECATED char path[1024]
DNA_DEPRECATED short interpolation
eNodeSocketDatatype input_type
float shadow_terminator_shading_offset
float shadow_terminator_geometry_offset
float shadow_terminator_normal_offset
float smaa_threshold_render
struct ToolSettings * toolsettings
struct SceneGpencil grease_pencil_settings
ListBaseT< ARegion > regionbase
ListBaseT< SpaceLink > spacedata
FileSelectParams * params
FileAssetSelectParams * asset_params
ListBaseT< ARegion > regionbase
struct CurveMapping * curve_rand_saturation
struct CurveMapping * curve_rand_value
struct CurveMapping * curve_rand_hue
ListBaseT< EditBone > * edbo
ListBaseT< Bone > bonebase
NodeTreeInterfaceItemType item_type
ListBaseT< bNodeLink > links
bNodeTreeInterface tree_interface
ListBaseT< struct ScrArea > areabase