WorldRendererImpl - checkstyle + add commented renderGraph init check for future reference
@@ -300,6 +300,11 @@ private void preRenderUpdate(RenderingStage renderingStage) {
*/
@Override
public void render(RenderingStage renderingStage) {
+ // If no rendering module populated renderGraph, throw an exception.
+ /* if (renderGraph.getNodeMapSize() < 1) {
+ throw new RuntimeException("Render graph is not ready to render. Did you use a rendering module?");
+ } */
+
preRenderUpdate(renderingStage);
// TODO: Add a method here to check wireframe configuration and regenerate "renderPipelineTask" accordingly.
