Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_300.c
| Show First 20 Lines • Show All 961 Lines • ▼ Show 20 Lines | switch (node_type) { | ||||
| case GEO_NODE_JOIN_GEOMETRY: | case GEO_NODE_JOIN_GEOMETRY: | ||||
| case GEO_NODE_ATTRIBUTE_REMOVE: | case GEO_NODE_ATTRIBUTE_REMOVE: | ||||
| case GEO_NODE_OBJECT_INFO: | case GEO_NODE_OBJECT_INFO: | ||||
| case GEO_NODE_COLLECTION_INFO: | case GEO_NODE_COLLECTION_INFO: | ||||
| return false; | return false; | ||||
| /* Maybe legacy: Special case for grid names? Or finish patch from level set branch to | /* Maybe legacy: Special case for grid names? Or finish patch from level set branch to | ||||
| * generate a mesh for all grids in the volume. */ | * generate a mesh for all grids in the volume. */ | ||||
| case GEO_NODE_VOLUME_TO_MESH: | case GEO_NODE_LEGACY_VOLUME_TO_MESH: | ||||
| return false; | return false; | ||||
| /* Legacy: Transferred *all* attributes before, will not transfer all built-ins now. */ | /* Legacy: Transferred *all* attributes before, will not transfer all built-ins now. */ | ||||
| case GEO_NODE_LEGACY_CURVE_ENDPOINTS: | case GEO_NODE_LEGACY_CURVE_ENDPOINTS: | ||||
| case GEO_NODE_LEGACY_CURVE_TO_POINTS: | case GEO_NODE_LEGACY_CURVE_TO_POINTS: | ||||
| return true; | return true; | ||||
| /* Legacy: Attribute operation completely replaced by field nodes. */ | /* Legacy: Attribute operation completely replaced by field nodes. */ | ||||
| ▲ Show 20 Lines • Show All 1,114 Lines • ▼ Show 20 Lines | void blo_do_versions_300(FileData *fd, Library *UNUSED(lib), Main *bmain) | ||||
| { | { | ||||
| /* Update the `idnames` for renamed geometry and function nodes. */ | /* Update the `idnames` for renamed geometry and function nodes. */ | ||||
| LISTBASE_FOREACH (bNodeTree *, ntree, &bmain->nodetrees) { | LISTBASE_FOREACH (bNodeTree *, ntree, &bmain->nodetrees) { | ||||
| if (ntree->type != NTREE_GEOMETRY) { | if (ntree->type != NTREE_GEOMETRY) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| version_node_id(ntree, FN_NODE_SLICE_STRING, "FunctionNodeSliceString"); | version_node_id(ntree, FN_NODE_SLICE_STRING, "FunctionNodeSliceString"); | ||||
| version_geometry_nodes_set_position_node_offset(ntree); | version_geometry_nodes_set_position_node_offset(ntree); | ||||
| version_node_id(ntree, GEO_NODE_LEGACY_VOLUME_TO_MESH, "GeometryNodeLegacyVolumeToMesh"); | |||||
| } | } | ||||
| /* Keep this block, even when empty. */ | /* Keep this block, even when empty. */ | ||||
| /* Add storage to viewer node. */ | /* Add storage to viewer node. */ | ||||
| LISTBASE_FOREACH (bNodeTree *, ntree, &bmain->nodetrees) { | LISTBASE_FOREACH (bNodeTree *, ntree, &bmain->nodetrees) { | ||||
| if (ntree->type != NTREE_GEOMETRY) { | if (ntree->type != NTREE_GEOMETRY) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| Show All 13 Lines | |||||