Fix: Nodes: double clicking to enter/exit node group not reliable
The issue was that the used operator just took the active node into account. However, clicking in empty space does not make the active node inactive. Therefore, sometimes clicking on empty space would sometimes remove enter the last selected group node. Furthermore, double clicking on other nodes may also trigger exiting the current group. This is fixed by introducing a new operator that explicitly checks what node is hovered. Pull Request: https://projects.blender.org/blender/blender/pulls/147053
This commit is contained in:
@@ -2268,8 +2268,7 @@ def km_node_editor(params):
|
||||
("node.group_make", {"type": 'G', "value": 'PRESS', "ctrl": True}, None),
|
||||
("node.group_ungroup", {"type": 'G', "value": 'PRESS', "ctrl": True, "alt": True}, None),
|
||||
("node.group_separate", {"type": 'P', "value": 'PRESS'}, None),
|
||||
("node.group_edit", {"type": 'LEFTMOUSE', "value": 'DOUBLE_CLICK'},
|
||||
{"properties": [("exit", False)]}),
|
||||
("node.group_enter_exit", {"type": 'LEFTMOUSE', "value": 'DOUBLE_CLICK'}, None),
|
||||
("node.group_edit", {"type": 'TAB', "value": 'PRESS'},
|
||||
{"properties": [("exit", False)]}),
|
||||
("node.group_edit", {"type": 'TAB', "value": 'PRESS', "ctrl": True},
|
||||
|
||||
Reference in New Issue
Block a user