Skip to content

Commit

Permalink
Show .fbx in the file picker
Browse files Browse the repository at this point in the history
  • Loading branch information
luboslenco committed Jan 18, 2025
1 parent fbc2c63 commit f0d620d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion base/sources/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,12 @@ function project_import_brush() {
function project_import_mesh(replace_existing: bool = true, done: ()=>void = null) {
_project_import_mesh_replace_existing = replace_existing;
_project_import_mesh_done = done;
ui_files_show(string_array_join(path_mesh_formats, ","), false, false, function (path: string) {
let formats: string = string_array_join(path_mesh_formats, ",");
if (string_index_of(formats, "fbx") == -1) {
// Show .fbx in the file picker even when fbx plugin is not yet enabled
formats += ",fbx";
}
ui_files_show(formats, false, false, function (path: string) {
project_import_mesh_box(path, _project_import_mesh_replace_existing, true, _project_import_mesh_done);
});
}
Expand Down

0 comments on commit f0d620d

Please sign in to comment.