Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_300.c
| Show First 20 Lines • Show All 748 Lines • ▼ Show 20 Lines | LISTBASE_FOREACH (Object *, ob, &bmain->objects) { | ||||
| if (realize_instances_node_tree == NULL) { | if (realize_instances_node_tree == NULL) { | ||||
| realize_instances_node_tree = add_realize_node_tree(bmain); | realize_instances_node_tree = add_realize_node_tree(bmain); | ||||
| } | } | ||||
| new_nmd->node_group = realize_instances_node_tree; | new_nmd->node_group = realize_instances_node_tree; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| if (!MAIN_VERSION_ATLEAST(bmain, 300, 37)) { | |||||
| LISTBASE_FOREACH (bNodeTree *, ntree, &bmain->nodetrees) { | |||||
| if (ntree->type == NTREE_GEOMETRY) { | |||||
| LISTBASE_FOREACH_MUTABLE (bNode *, node, &ntree->nodes) { | |||||
| if (node->type == GEO_NODE_BOUNDING_BOX) { | |||||
| bNodeSocket *geometry_socket = node->inputs.first; | |||||
| add_realize_instances_before_socket(ntree, node, geometry_socket); | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| /** | /** | ||||
| * Versioning code until next subversion bump goes here. | * Versioning code until next subversion bump goes here. | ||||
| * | * | ||||
| * \note Be sure to check when bumping the version: | * \note Be sure to check when bumping the version: | ||||
| * - #blo_do_versions_300 in this file. | * - #blo_do_versions_300 in this file. | ||||
| * - "versioning_userdef.c", #blo_do_versions_userdef | * - "versioning_userdef.c", #blo_do_versions_userdef | ||||
| * - "versioning_userdef.c", #do_versions_theme | * - "versioning_userdef.c", #do_versions_theme | ||||
| * | * | ||||
| ▲ Show 20 Lines • Show All 1,225 Lines • Show Last 20 Lines | |||||