Merge branch 'blender-v3.4-release'
This commit is contained in:
commit
dfb157f9c4
Notes:
blender-bot
2023-02-14 06:00:51 +01:00
Referenced by issue #102520, Regerssion: Search menu not working correctly in node editors
|
@ -219,7 +219,7 @@ class NODE_MT_add(bpy.types.Menu):
|
|||
import nodeitems_utils
|
||||
|
||||
layout = self.layout
|
||||
layout.operator_context = 'INVOKE_DEFAULT'
|
||||
layout.operator_context = 'INVOKE_REGION_WIN'
|
||||
|
||||
snode = context.space_data
|
||||
if snode.tree_type == 'GeometryNodeTree':
|
||||
|
|
|
@ -257,7 +257,7 @@ static void add_node_search_exec_fn(bContext *C, void *arg1, void *arg2)
|
|||
}
|
||||
|
||||
new_node->locx = storage.cursor.x / UI_DPI_FAC;
|
||||
new_node->locy = storage.cursor.y / UI_DPI_FAC + 20 * UI_DPI_FAC;
|
||||
new_node->locy = storage.cursor.y / UI_DPI_FAC + 20;
|
||||
|
||||
nodeSetSelected(new_node, true);
|
||||
nodeSetActive(&node_tree, new_node);
|
||||
|
|
Loading…
Reference in New Issue