From 2eb41ac549fdf8bd82e1b11ba6bf7a4f524dadee Mon Sep 17 00:00:00 2001 From: Mattia Zirpoli Date: Sat, 13 Dec 2025 02:41:01 +0100 Subject: [PATCH] VisualShader: fix new node spawning position with display scaling --- editor/shader/visual_shader_editor_plugin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/shader/visual_shader_editor_plugin.cpp b/editor/shader/visual_shader_editor_plugin.cpp index e7e684e7630..fd049870fd0 100644 --- a/editor/shader/visual_shader_editor_plugin.cpp +++ b/editor/shader/visual_shader_editor_plugin.cpp @@ -3847,6 +3847,7 @@ void VisualShaderEditor::_add_node(int p_idx, const Vector &p_ops, cons position /= EDSCALE; } position /= graph->get_zoom(); + position /= cached_theme_base_scale; saved_node_pos_dirty = false; int id_to_use = visual_shader->get_valid_node_id(type);