- remove misplaced model loading exception from BinaryImporter

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7696 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 14 years ago
parent d6f7ebc89c
commit d1b0ff04d1
  1. 5
      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.export.SavableClassFinder;
import com.jme3.asset.AssetInfo; import com.jme3.asset.AssetInfo;
import com.jme3.asset.AssetManager; import com.jme3.asset.AssetManager;
import com.jme3.asset.ModelKey;
import com.jme3.export.JmeImporter; import com.jme3.export.JmeImporter;
import com.jme3.export.ReadListener; import com.jme3.export.ReadListener;
import com.jme3.export.Savable; import com.jme3.export.Savable;
@ -113,8 +112,8 @@ public final class BinaryImporter implements JmeImporter {
} }
public Object load(AssetInfo info){ public Object load(AssetInfo info){
if (!(info.getKey() instanceof ModelKey)) // if (!(info.getKey() instanceof ModelKey))
throw new IllegalArgumentException("Model assets must be loaded using a ModelKey"); // throw new IllegalArgumentException("Model assets must be loaded using a ModelKey");
assetManager = info.getManager(); assetManager = info.getManager();

Loading…
Cancel
Save