Преглед на файлове

Editor: Added supported file formats to import's file browser.

Mr.doob преди 1 година
родител
ревизия
a1317753d8
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      editor/js/Menubar.File.js

+ 1 - 0
editor/js/Menubar.File.js

@@ -44,6 +44,7 @@ function MenubarFile( editor ) {
 	const fileInput = document.createElement( 'input' );
 	const fileInput = document.createElement( 'input' );
 	fileInput.multiple = true;
 	fileInput.multiple = true;
 	fileInput.type = 'file';
 	fileInput.type = 'file';
+	fileInput.accept = '.3dm, .3ds, .3mf, .amf, .dae, .drc, .fbx, .glb, .gltf, .js, .json, .kmz, .ldr, .md2, .mpd, .obj, .pcd, .ply, .stl, .svg, .usdz, .vox, .vtk, .vtp, .wrl, .xyz, .zip';
 	fileInput.addEventListener( 'change', function () {
 	fileInput.addEventListener( 'change', function () {
 
 
 		editor.loader.loadFiles( fileInput.files );
 		editor.loader.loadFiles( fileInput.files );