You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Fix incorrect position of the created VisualShader nodes on zoomed graph
This commit is contained in:
@@ -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 += graph->get_size() * 0.5;
|
||||||
position /= EDSCALE;
|
position /= EDSCALE;
|
||||||
}
|
}
|
||||||
|
position /= graph->get_zoom();
|
||||||
saved_node_pos_dirty = false;
|
saved_node_pos_dirty = false;
|
||||||
|
|
||||||
int id_to_use = visual_shader->get_valid_node_id(type);
|
int id_to_use = visual_shader->get_valid_node_id(type);
|
||||||
|
|||||||
Reference in New Issue
Block a user