Skip to content

Commit 895c6de

Browse files
authored
DirectionalLightShadowRenderer: fix debugFrustum
1 parent e7ce097 commit 895c6de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

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

213213
@Override
214214
protected void doDisplayFrustumDebug(int shadowMapIndex) {
215-
((Node) viewPort.getScenes().get(0)).attachChild(createFrustum(points, shadowMapIndex));
215+
getMainScene().attachChild(createFrustum(points, shadowMapIndex));
216216
ShadowUtil.updateFrustumPoints2(shadowCam, points);
217-
((Node) viewPort.getScenes().get(0)).attachChild(createFrustum(points, shadowMapIndex));
217+
getMainScene().attachChild(createFrustum(points, shadowMapIndex));
218218
}
219219

220220
@Override

0 commit comments

Comments
 (0)