Skip to content

Commit 88788ea

Browse files
authored
SpotLightShadowRenderer: revert points cloning
1 parent d63a2b8 commit 88788ea

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

jme3-core/src/main/java/com/jme3/shadow/SpotLightShadowRenderer.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,11 @@ protected Camera getShadowCam(int shadowMapIndex) {
176176

177177
@Override
178178
protected void doDisplayFrustumDebug(int shadowMapIndex) {
179+
Vector3f[] points2 = points.clone();
180+
179181
((Node) viewPort.getScenes().get(0)).attachChild(createFrustum(points, shadowMapIndex));
180-
ShadowUtil.updateFrustumPoints2(shadowCam, points);
181-
((Node) viewPort.getScenes().get(0)).attachChild(createFrustum(points, shadowMapIndex));
182+
ShadowUtil.updateFrustumPoints2(shadowCam, points2);
183+
((Node) viewPort.getScenes().get(0)).attachChild(createFrustum(points2, shadowMapIndex));
182184
}
183185

184186
@Override

0 commit comments

Comments
 (0)