Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-12-16 15:31:56 +0300
committerJacques Lucke <jacques@blender.org>2020-12-16 15:31:56 +0300
commit4c26dd430d5ec0867cd7b834e601fbaaf7e10e67 (patch)
tree3d193275634232efce5f92a2818f6d2367a06c4f /source/blender/blenloader
parent985d673374a48eef6af5e73b0b24d4462a911f4b (diff)
Geometry Nodes: rename node to Attribute Randomize
Previously, the node was called Random Attribute. For consistency reasons, we move the "Attribute" part of the name to the front.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/versioning_290.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_290.c b/source/blender/blenloader/intern/versioning_290.c
index 685bb762f29..49e1b057b39 100644
--- a/source/blender/blenloader/intern/versioning_290.c
+++ b/source/blender/blenloader/intern/versioning_290.c
@@ -1316,5 +1316,13 @@ void blo_do_versions_290(FileData *fd, Library *UNUSED(lib), Main *bmain)
*/
{
/* Keep this block, even when empty. */
+
+ LISTBASE_FOREACH (bNodeTree *, ntree, &bmain->nodetrees) {
+ LISTBASE_FOREACH (bNode *, node, &ntree->nodes) {
+ if (STREQ(node->idname, "GeometryNodeRandomAttribute")) {
+ STRNCPY(node->idname, "GeometryNodeAttributeRandomize");
+ }
+ }
+ }
}
}