Skip to content

Commit f50a2e9

Browse files
committed
Fixed Broken Scene Issue regarding Main.j3o
1 parent 8e07ad9 commit f50a2e9

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

jme3-examples/src/main/java/jme3test/light/TestManyLightsSingle.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ public void simpleInitApp() {
8080
Node scene = (Node) assetManager.loadModel("Scenes/ManyLights/Main.j3o");
8181
rootNode.attachChild(scene);
8282
Node n = (Node) rootNode.getChild(0);
83-
final LightList lightList = n.getWorldLightList();
83+
84+
final LightList lightList = n.getLocalLightList();
8485
final Geometry g = (Geometry) n.getChild("Grid-geom-1");
8586

8687
g.getMaterial().setColor("Ambient", new ColorRGBA(0.2f, 0.2f, 0.2f, 1f));
@@ -98,7 +99,8 @@ public void simpleInitApp() {
9899
final Node cubeNodes = new Node();
99100
n.attachChild(cubeNodes);
100101
int nb = 0;
101-
for (Light light : lightList) {
102+
for (Light light : lightList)
103+
{
102104
nb++;
103105
PointLight p = (PointLight) light;
104106
if (nb > 60) {

0 commit comments

Comments
 (0)