소스 검색

Fixed worldLightList sorting when a light is added to a node.

Nehon 10 년 전
부모
커밋
7b7c6951ad
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      jme3-core/src/main/java/com/jme3/scene/Geometry.java

+ 7 - 0
jme3-core/src/main/java/com/jme3/scene/Geometry.java

@@ -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}.
      *