Fixed worldLightList sorting when a light is added to a node.
This commit is contained in:
parent
a730da35b4
commit
7b7c6951ad
@ -317,6 +317,13 @@ public class Geometry extends Spatial {
|
||||
worldLights.sort(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void updateWorldLightList() {
|
||||
super.updateWorldLightList();
|
||||
// geometry requires lights to be sorted
|
||||
worldLights.sort(true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Associate this <code>Geometry</code> with a {@link GeometryGroupNode}.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user