mirror of
https://github.com/godotengine/godot.git
synced 2025-01-23 19:12:24 -05:00
Fix incorrect position of the created VisualShader nodes on zoomed graph
(cherry picked from commit 8249ae8085
)
This commit is contained in:
parent
d2a70532e8
commit
9c9559654b
1 changed files with 1 additions and 0 deletions
|
@ -1439,6 +1439,7 @@ VisualShaderNode *VisualShaderEditor::_add_node(int p_idx, int p_op_idx) {
|
|||
position += graph->get_size() * 0.5;
|
||||
position /= EDSCALE;
|
||||
}
|
||||
position /= graph->get_zoom();
|
||||
saved_node_pos_dirty = false;
|
||||
|
||||
VisualShader::Type type = VisualShader::Type(edit_type->get_selected());
|
||||
|
|
Loading…
Add table
Reference in a new issue