Browse Source

- remove misplaced model loading exception from BinaryImporter

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7696 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
nor..67 14 years ago
parent
commit
d1b0ff04d1

+ 2 - 3
engine/src/core-plugins/com/jme3/export/binary/BinaryImporter.java

@@ -35,7 +35,6 @@ package com.jme3.export.binary;
 import com.jme3.export.SavableClassFinder;
 import com.jme3.asset.AssetInfo;
 import com.jme3.asset.AssetManager;
-import com.jme3.asset.ModelKey;
 import com.jme3.export.JmeImporter;
 import com.jme3.export.ReadListener;
 import com.jme3.export.Savable;
@@ -113,8 +112,8 @@ public final class BinaryImporter implements JmeImporter {
     }
 
     public Object load(AssetInfo info){
-        if (!(info.getKey() instanceof ModelKey))
-            throw new IllegalArgumentException("Model assets must be loaded using a ModelKey");
+//        if (!(info.getKey() instanceof ModelKey))
+//            throw new IllegalArgumentException("Model assets must be loaded using a ModelKey");
 
         assetManager = info.getManager();