Skip to content

Commit

Permalink
fix for issue #985: use a MaterialKey in TestAssetLinkNode
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Jan 7, 2019
1 parent 0e9ff83 commit e5fb5bf
Showing 1 changed file with 3 additions and 3 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2012 jMonkeyEngine
* Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -33,7 +33,7 @@
package jme3test.export;

import com.jme3.app.SimpleApplication;
import com.jme3.asset.AssetKey;
import com.jme3.asset.MaterialKey;
import com.jme3.asset.ModelKey;
import com.jme3.export.binary.BinaryExporter;
import com.jme3.export.binary.BinaryImporter;
Expand Down Expand Up @@ -93,7 +93,7 @@ public void simpleInitApp() {
rootNode.attachChild(loaderNode);

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);

// flourescent main light
Expand Down

0 comments on commit e5fb5bf

Please sign in to comment.