[Bf-blender-cvs] [bbdfd0cabed] sculpt-dev: Fix: incorrect versioning for Attribute Randomize node

Jacques Lucke noreply at git.blender.org
Mon Feb 15 22:56:49 CET 2021


Commit: bbdfd0cabed08b0f88a956def1c14578c4c836a3
Author: Jacques Lucke
Date:   Mon Feb 15 10:36:35 2021 +0100
Branches: sculpt-dev
https://developer.blender.org/rBbbdfd0cabed08b0f88a956def1c14578c4c836a3

Fix: incorrect versioning for Attribute Randomize node

===================================================================

M	source/blender/blenloader/intern/versioning_290.c

===================================================================

diff --git a/source/blender/blenloader/intern/versioning_290.c b/source/blender/blenloader/intern/versioning_290.c
index 7ae8a3adcea..93cdf8624f8 100644
--- a/source/blender/blenloader/intern/versioning_290.c
+++ b/source/blender/blenloader/intern/versioning_290.c
@@ -1712,7 +1712,7 @@ void blo_do_versions_290(FileData *fd, Library *UNUSED(lib), Main *bmain)
         continue;
       }
       LISTBASE_FOREACH (bNode *, node, &ntree->nodes) {
-        if (node->type == GEO_NODE_POINT_INSTANCE && node->storage == NULL) {
+        if (node->type == GEO_NODE_ATTRIBUTE_RANDOMIZE && node->storage == NULL) {
           NodeAttributeRandomize *data = (NodeAttributeRandomize *)MEM_callocN(
               sizeof(NodeAttributeRandomize), __func__);
           data->data_type = node->custom1;



More information about the Bf-blender-cvs mailing list