Skip to content

Commit

Permalink
Fix incorrect position of the created VisualShader nodes on zoomed graph
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaosus committed Aug 11, 2021
1 parent 2c88e1c commit 8249ae8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions editor/plugins/visual_shader_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2361,6 +2361,7 @@ void VisualShaderEditor::_add_node(int p_idx, int p_op_idx, String p_resource_pa
position += graph->get_size() * 0.5;
position /= EDSCALE;
}
position /= graph->get_zoom();
saved_node_pos_dirty = false;

int id_to_use = visual_shader->get_valid_node_id(type);
Expand Down

0 comments on commit 8249ae8

Please sign in to comment.