Will handle gltf as plugin
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user