You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
910 B
30 lines
910 B
/*
|
|
* To change this template, choose Tools | Templates
|
|
* and open the template in the editor.
|
|
*/
|
|
package com.jme3.gde.blender;
|
|
|
|
import com.jme3.asset.BlenderKey;
|
|
import com.jme3.asset.ModelKey;
|
|
import com.jme3.gde.core.assets.SpatialAssetDataObject;
|
|
import java.io.IOException;
|
|
import org.openide.filesystems.FileObject;
|
|
import org.openide.loaders.DataObjectExistsException;
|
|
import org.openide.loaders.MultiFileLoader;
|
|
|
|
public class BlenderDataObject extends SpatialAssetDataObject {
|
|
|
|
public BlenderDataObject(FileObject pf, MultiFileLoader loader) throws DataObjectExistsException, IOException {
|
|
super(pf, loader);
|
|
}
|
|
|
|
@Override
|
|
public ModelKey getAssetKey() {
|
|
if(super.getAssetKey() instanceof BlenderKey){
|
|
return (BlenderKey)assetKey;
|
|
}
|
|
assetKey = new BlenderKey(super.getAssetKey().getName());
|
|
return (BlenderKey)assetKey;
|
|
}
|
|
|
|
}
|
|
|