fix for issue #985: use a MaterialKey in TestAssetLinkNode

accellbaker
Stephen Gold 6 years ago
parent 0e9ff83996
commit e5fb5bfefe
  1. 6
      jme3-examples/src/main/java/jme3test/export/TestAssetLinkNode.java

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2009-2012 jMonkeyEngine * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@ -33,7 +33,7 @@
package jme3test.export; package jme3test.export;
import com.jme3.app.SimpleApplication; import com.jme3.app.SimpleApplication;
import com.jme3.asset.AssetKey; import com.jme3.asset.MaterialKey;
import com.jme3.asset.ModelKey; import com.jme3.asset.ModelKey;
import com.jme3.export.binary.BinaryExporter; import com.jme3.export.binary.BinaryExporter;
import com.jme3.export.binary.BinaryImporter; import com.jme3.export.binary.BinaryImporter;
@ -93,7 +93,7 @@ public class TestAssetLinkNode extends SimpleApplication {
rootNode.attachChild(loaderNode); rootNode.attachChild(loaderNode);
lightMdl = new Geometry("Light", new Sphere(10, 10, 0.1f)); lightMdl = new Geometry("Light", new Sphere(10, 10, 0.1f));
lightMdl.setMaterial( (Material) assetManager.loadAsset(new AssetKey("Common/Materials/RedColor.j3m"))); lightMdl.setMaterial( (Material) assetManager.loadAsset(new MaterialKey("Common/Materials/RedColor.j3m")));
rootNode.attachChild(lightMdl); rootNode.attachChild(lightMdl);
// flourescent main light // flourescent main light

Loading…
Cancel
Save