From e99e5a87bcb4b22fd1195de58bb4056936f53fca Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 19 Apr 2024 21:26:37 +0200 Subject: [PATCH] Make mat maker's image picker button's dialog use resources. --- .../editor/widgets/image_picker_button/image_picker_button.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/material_maker/editor/widgets/image_picker_button/image_picker_button.cpp b/modules/material_maker/editor/widgets/image_picker_button/image_picker_button.cpp index 9b83c7943..61b8dea4c 100644 --- a/modules/material_maker/editor/widgets/image_picker_button/image_picker_button.cpp +++ b/modules/material_maker/editor/widgets/image_picker_button/image_picker_button.cpp @@ -77,7 +77,7 @@ void ImagePickerButton::_on_ImagePicker_pressed() { dialog = memnew(MatMakerFileDialog); add_child(dialog); dialog->set_custom_minimum_size(Vector2(500, 500)); - dialog->set_access(FileDialog::ACCESS_FILESYSTEM); + dialog->set_access(FileDialog::ACCESS_RESOURCES); dialog->set_mode(FileDialog::MODE_OPEN_FILE); dialog->add_filter("*.bmp;BMP Image"); dialog->add_filter("*.exr;EXR Image");