2
0
Fork 0

Fix incorrect position of the created VisualShader nodes on zoomed graph

(cherry picked from commit 8249ae8085)
3.3
Yuri Roubinsky 2021-08-11 10:53:26 +07:00 committed by Rémi Verschelde
parent 279af47ef9
commit a89346e227
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 0 deletions

@ -1464,6 +1464,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());