diff options
author | Hans Goudey <h.goudey@me.com> | 2021-03-17 21:40:38 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-03-17 21:40:38 +0300 |
commit | a41d3c0ebecfb0846a9a43b41acb74ca7854c7c0 (patch) | |
tree | c13c2c6cb60aebf3f186cc0fc50a55061300ab99 /source/blender/blenloader | |
parent | 1cc427ce2bc564d1c5e192bf49d94311c996b3fb (diff) |
Geometry Nodes: Rename "Subdivide Smooth" back to "Subdivision Surface"
Following concerns raised in the commit that changed the name initially,
rB2e19509e60b39837, it makes more sense to keep the "Surface" name for
this node because it has a specific meaning that should not be confused
with other types of subdivision.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/versioning_290.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_290.c b/source/blender/blenloader/intern/versioning_290.c index 0c6ad001e46..bf70a50631f 100644 --- a/source/blender/blenloader/intern/versioning_290.c +++ b/source/blender/blenloader/intern/versioning_290.c @@ -1892,6 +1892,18 @@ void blo_do_versions_290(FileData *fd, Library *UNUSED(lib), Main *bmain) } } + if (!MAIN_VERSION_ATLEAST(bmain, 293, 13)) { + LISTBASE_FOREACH (bNodeTree *, ntree, &bmain->nodetrees) { + if (ntree->type == NTREE_GEOMETRY) { + LISTBASE_FOREACH (bNode *, node, &ntree->nodes) { + if (STREQ(node->idname, "GeometryNodeSubdivideSmooth")) { + STRNCPY(node->idname, "GeometryNodeSubdivisionSurface"); + } + } + } + } + } + /** * Versioning code until next subversion bump goes here. * |