diff options
author | Hans Goudey <h.goudey@me.com> | 2021-11-13 02:14:27 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-11-13 02:14:27 +0300 |
commit | 738f4fbc5e3af84543e07557b3b7b8120ecf9638 (patch) | |
tree | 0f9f6e5de3dc094bfba45c2c5f2399d04edecf71 /source/blender | |
parent | ebb4aba325e61df717a3aaf7cee34ae957806f7a (diff) |
Revert "Fix T92636: Vector math node link disconnects when loading old file"
This reverts commit 6b4ca781085fecc1058566a3b51bd3536eb9d4a1.
A simpler fix was used for 3.0, but rBd845ba481c6d2ef already contained
a more complete solution to the problem of inconsistent socket ids.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenloader/intern/versioning_300.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/source/blender/blenloader/intern/versioning_300.c b/source/blender/blenloader/intern/versioning_300.c index f963babc018..5296a0b4f82 100644 --- a/source/blender/blenloader/intern/versioning_300.c +++ b/source/blender/blenloader/intern/versioning_300.c @@ -2178,21 +2178,5 @@ void blo_do_versions_300(FileData *fd, Library *UNUSED(lib), Main *bmain) } } FOREACH_NODETREE_END; - - /* Use consistent socket identifiers for the vector math node. - * Thecode to make unique identifiers from the names was inconsitent. */ - FOREACH_NODETREE_BEGIN (bmain, ntree, id) { - if (ELEM(ntree->type, NTREE_SHADER, NTREE_GEOMETRY)) { - LISTBASE_FOREACH (bNode *, node, &ntree->nodes) { - if (node->type == SH_NODE_MATH) { - bNodeSocket *value1 = ((bNodeSocket *)node->inputs.first)->next; - bNodeSocket *value2 = value1->next; - strcpy(value1->identifier, "Value_001"); - strcpy(value2->identifier, "Value_002"); - } - } - } - } - FOREACH_NODETREE_END; } } |