1
0
Fork 0

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
1 changed files with 1 additions and 0 deletions

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);