Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

AudioStreamImportSettings: Show indicator if at the absolute end

NoNormalDevada36d3fe5b8
diff --git a/editor/import/audio_stream_import_settings.cpp b/editor/import/audio_stream_import_settings.cpp
index b60468d066a..8a5d7549974 100644
--- a/editor/import/audio_stream_import_settings.cpp
+++ b/editor/import/audio_stream_import_settings.cpp
@@ -322,7 +322,7 @@ void AudioStreamImportSettingsDialog::_draw_indicator() {
_current_label->set_text(String::num(_current, 2).pad_decimals(2) + " /");
float ofs_x = (_current - zoom_bar->get_value()) * rect.size.width / zoom_bar->get_page();
- if (ofs_x < 0 || ofs_x >= rect.size.width) {
+ if (ofs_x < 0 || ofs_x > rect.size.width) {
return;
}