From 0c6dfaf5441c8a6ae969e6cc330a1ebcc855128f Mon Sep 17 00:00:00 2001 From: Simon Dietz Date: Fri, 10 Jan 2025 10:13:11 +0100 Subject: [PATCH] Fixed active check for Renderable components. --- src/main/java/engine/scene/SceneNode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/engine/scene/SceneNode.java b/src/main/java/engine/scene/SceneNode.java index 182e65c2..5bb94b5b 100644 --- a/src/main/java/engine/scene/SceneNode.java +++ b/src/main/java/engine/scene/SceneNode.java @@ -121,7 +121,7 @@ private void applyLocalTransform(Graphics g) { protected void renderComponents(Graphics g) { if (!active) return; for (RenderableComponent renderer : getRenderComponents()) { - renderer.render(g); + if (renderer.isActive()) renderer.render(g); } }