blender/tests/files/node_group
Lukas Tönne f7f4071e2e Fix #160692: Auto-removal of viewer socket crashes group operator
The `Make Group` operator for nodes expects that sockets remain valid
when removing a link to the node (to be replaced by a new external
link). This is not the case for highly dynamic nodes like viewer nodes.
A viewer socket is removed as soon as it is un-linked.

Make the group operator more robust by checking if sockets exist and
ignoring any link to group nodes when the socket disappears.
Ideally the viewer node would remain connected through these operations,
but that requires some detail special case for viewer behavior or some
way to ensure a viewer node copy has the same sockets as the original.

A regression test is also added for this case.

The `bl_node_copy_operators.py` has been modified to use the
`BLENDER_TEST_UPDATE` environment variable for updating the expected
test data, instead of the previous `--generate` script parameter.
This is consistent with other test scripts using the same mechanism.

A bug in `nearest_node_grid_coord` was fixed which created `nan` node
locations when running in `--background` mode due to zero UI scale.
Introduced by #157834.

Pull Request: https://projects.blender.org/blender/blender/pulls/160718
2026-06-26 14:59:43 +02:00
..
empty.blend
link_drag_search.blend Nodes: Tests for the socket link search feature 2026-02-02 13:38:43 +01:00
node_copy_operators.blend Fix #160692: Auto-removal of viewer socket crashes group operator 2026-06-26 14:59:43 +02:00
node_group_socket_interface_compositor.blend Nodes: Add versioning for interface socket indentifier sanitization 2026-04-13 19:33:59 +02:00
nodegroup25.blend
nodegroup36.blend
socket_usage_inference.blend Fix #142828: broken socket usage inference for some nodes 2025-07-24 08:13:34 +02:00
structure_type_inference.blend