Godot Engine – Multi-platform 2D and 3D game engine
Clean up one statement using an already defined variable
NoNormalDev59a32793d250
diff --git a/editor/inspector/editor_resource_picker.cpp b/editor/inspector/editor_resource_picker.cppindex 0b1d26ec616..213bd458cef 100644--- a/editor/inspector/editor_resource_picker.cpp+++ b/editor/inspector/editor_resource_picker.cpp@@ -1764,7 +1764,7 @@ void EditorAudioStreamPicker::_preview_draw() {float text_width = size.width - 4 * EDSCALE - icon->get_width();if (text_width > 0) {- stream_preview_rect->draw_string(font, Point2i(EDSCALE * 4 + icon->get_width(), rect.position.y + font->get_ascent(font_size) + (rect.size.height - font->get_height(font_size)) / 2), text, HORIZONTAL_ALIGNMENT_CENTER, text_width, font_size, get_theme_color(SceneStringName(font_color), EditorStringName(Editor)));+ stream_preview_rect->draw_string(font, Point2i(size.width - text_width, rect.position.y + font->get_ascent(font_size) + (rect.size.height - font->get_height(font_size)) / 2), text, HORIZONTAL_ALIGNMENT_CENTER, text_width, font_size, get_theme_color(SceneStringName(font_color), EditorStringName(Editor)));}}