From e5fb5bfefe248f915a8bf383cdcec3a317f3b526 Mon Sep 17 00:00:00 2001 From: Stephen Gold Date: Sun, 6 Jan 2019 18:38:32 -0800 Subject: [PATCH] fix for issue #985: use a MaterialKey in TestAssetLinkNode --- .../src/main/java/jme3test/export/TestAssetLinkNode.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jme3-examples/src/main/java/jme3test/export/TestAssetLinkNode.java b/jme3-examples/src/main/java/jme3test/export/TestAssetLinkNode.java index d2c721328..0710a6843 100644 --- a/jme3-examples/src/main/java/jme3test/export/TestAssetLinkNode.java +++ b/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. * * Redistribution and use in source and binary forms, with or without @@ -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; @@ -93,7 +93,7 @@ public class TestAssetLinkNode extends SimpleApplication { 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