1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-31 18:41:20 +00:00

VisualShader: fix new node spawning position with display scaling

This commit is contained in:
Mattia Zirpoli
2025-12-13 02:41:01 +01:00
parent 08e6cd181f
commit 2eb41ac549

View File

@@ -3847,6 +3847,7 @@ void VisualShaderEditor::_add_node(int p_idx, const Vector<Variant> &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);