/** * Sets the scene to render in the reflection map. * * @param reflectionScene the refraction scene. */ public void setReflectionScene(final Spatial reflectionScene) { final Spatial currentScene = getReflectionScene(); if (reflectionView != null) { reflectionView.detachScene(currentScene == null? rootScene : currentScene); } this.reflectionScene = reflectionScene; if (reflectionView != null) { reflectionView.attachScene(reflectionScene == null? rootScene : reflectionScene); } }
final Spatial reflectionScene = getReflectionScene(); final boolean needSaveReflectionScene = isNeedSaveReflectionScene();
/** * Sets the scene to render in the reflection map. * * @param reflectionScene the refraction scene. */ public void setReflectionScene(final Spatial reflectionScene) { final Spatial currentScene = getReflectionScene(); if (reflectionView != null) { reflectionView.detachScene(currentScene == null? rootScene : currentScene); } this.reflectionScene = reflectionScene; if (reflectionView != null) { reflectionView.attachScene(reflectionScene == null? rootScene : reflectionScene); } }
final Spatial reflectionScene = getReflectionScene(); final boolean needSaveReflectionScene = isNeedSaveReflectionScene();