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
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user