Will handle gltf as plugin

This commit is contained in:
unknown
2019-06-22 16:19:47 +02:00
parent b3797679b0
commit 6cd7902d98
3 changed files with 3 additions and 5 deletions
-1
View File
@@ -69,7 +69,6 @@ class Importer {
var p = path.toLowerCase();
if (p.endsWith(".obj")) ImportObj.run(path);
else if (p.endsWith(".gltf")) ImportGltf.run(path);
else if (p.endsWith(".fbx")) ImportFbx.run(path);
else if (p.endsWith(".blend")) ImportBlend.run(path);
+2 -2
View File
@@ -506,7 +506,7 @@ class UITrait {
App.whandle.redraws = 2;
App.foldersOnly = false;
App.showFilename = false;
UIFiles.filters = "jpg,png,tga,hdr,obj,fbx,blend,gltf,arm";
UIFiles.filters = "jpg,png,tga,hdr,obj,fbx,blend,arm";
App.filesDone = function(path:String) {
Importer.importFile(path);
}
@@ -1396,7 +1396,7 @@ class UITrait {
App.whandle.redraws = 2;
App.foldersOnly = false;
App.showFilename = false;
UIFiles.filters = "obj,fbx,blend,gltf,arm";
UIFiles.filters = "obj,fbx,blend,arm";
App.filesDone = function(path:String) {
Importer.importFile(path);
}
+1 -2
View File
@@ -33,8 +33,7 @@ class Path {
var p = path.toLowerCase();
return p.endsWith(".obj") ||
p.endsWith(".fbx") ||
p.endsWith(".blend") ||
p.endsWith(".gltf");
p.endsWith(".blend");
}
public static function checkTextureFormat(path:String):Bool {