mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Fix incorrect scroll when the user perform first action on visual shader
This commit is contained in:
parent
bbb1af91d8
commit
cd3d538f12
@ -69,6 +69,7 @@ void VisualShaderEditor::edit(VisualShader *p_visual_shader) {
|
||||
}
|
||||
}
|
||||
visual_shader = Ref<VisualShader>(p_visual_shader);
|
||||
visual_shader->set_graph_offset(graph->get_scroll_ofs() / EDSCALE);
|
||||
} else {
|
||||
visual_shader.unref();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user