Make mat maker's image picker button's dialog use resources.

This commit is contained in:
Relintai 2024-04-19 21:26:37 +02:00
parent 6d0c43dbf0
commit e99e5a87bc

View File

@ -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");