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:
parent
bc3da3ad41
commit
2fb829a2de
Notes:
blender-bot
2023-02-14 11:18:07 +01:00
Referenced by issue #103837, Regression : crash opening file with uv from GN primitive
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue