Ver Fonte

FBX: use new loader by default

Kirill Vainer há 9 anos atrás
pai
commit
3f5cc4963e

+ 1 - 2
jme3-core/src/main/resources/com/jme3/asset/General.cfg

@@ -22,5 +22,4 @@ LOADER com.jme3.scene.plugins.ogre.MaterialLoader : material
 LOADER com.jme3.scene.plugins.ogre.SceneLoader : scene
 LOADER com.jme3.scene.plugins.blender.BlenderModelLoader : blend
 LOADER com.jme3.shader.plugins.GLSLLoader : vert, frag, geom, tsctrl, tseval, glsl, glsllib
-LOADER com.jme3.scene.plugins.fbx.SceneLoader : fbx
-LOADER com.jme3.scene.plugins.fbx.SceneWithAnimationLoader : fba
+LOADER com.jme3.scene.plugins.fbx.FbxLoader : fbx

+ 6 - 0
jme3-plugins/src/fbx/java/com/jme3/scene/plugins/fbx/obj/FbxObjectFactory.java

@@ -74,6 +74,12 @@ public final class FbxObjectFactory {
                        subclassName.equals("FKEffector")) {
                 // jME3 does not support IK.
                 return FbxNullAttribute.class;
+            } else if (subclassName.equals("Light")) {
+                // TODO: support lights
+                return FbxNullAttribute.class;
+            } else if (subclassName.equals("Camera")) {
+                // TODO: support cameras
+                return FbxNullAttribute.class;
             } else {
                 // NodeAttribute - Unknown
                 logger.log(Level.WARNING, "Unknown object subclass: {0}. Ignoring.", subclassName);