[Bf-blender-cvs] [2fb829a2deb] master: Fix T103837: crash opening a specific file
Philipp Oeser
noreply at git.blender.org
Fri Jan 13 15:00:07 CET 2023
Commit: 2fb829a2deb809af6589a2eec19c16fdf4718de6
Author: Philipp Oeser
Date: Fri Jan 13 13:03:02 2023 +0100
Branches: master
https://developer.blender.org/rB2fb829a2deb809af6589a2eec19c16fdf4718de6
Fix T103837: crash opening a specific file
Caused by {rBd397ecae325}.
Above commit added a new socket, so
`version_geometry_nodes_primitive_uv_maps` was getting the wrong sockect
with `->next`.
Now get the right one with yet another `->next` (might not be ideal, but
searching the right socket with other methods might be overhead?)
Maniphest Tasks: T103837
Differential Revision: https://developer.blender.org/D16994
===================================================================
M source/blender/blenloader/intern/versioning_300.cc
===================================================================
diff --git a/source/blender/blenloader/intern/versioning_300.cc b/source/blender/blenloader/intern/versioning_300.cc
index ddb9f157d18..0a68a526d0f 100644
--- a/source/blender/blenloader/intern/versioning_300.cc
+++ b/source/blender/blenloader/intern/versioning_300.cc
@@ -876,7 +876,7 @@ static void version_geometry_nodes_primitive_uv_maps(bNodeTree &ntree)
bNodeSocket *store_attribute_geometry_input = static_cast<bNodeSocket *>(
store_attribute_node->inputs.first);
- bNodeSocket *store_attribute_name_input = store_attribute_geometry_input->next;
+ bNodeSocket *store_attribute_name_input = store_attribute_geometry_input->next->next;
bNodeSocket *store_attribute_value_input = nullptr;
LISTBASE_FOREACH (bNodeSocket *, socket, &store_attribute_node->inputs) {
if (socket->type == SOCK_VECTOR) {
More information about the Bf-blender-cvs
mailing list