From 8fd6b44ba3ad26cb46d37c29894b8778d22796fe Mon Sep 17 00:00:00 2001 From: codereader Date: Sat, 30 Apr 2022 20:54:32 +0200 Subject: [PATCH] #5950: Remove visibility check from PatchNode::onPreRender. Node visibility is already checked by the front end walker, Material visibility is checked by the backend renderer. --- radiantcore/patch/PatchNode.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/radiantcore/patch/PatchNode.cpp b/radiantcore/patch/PatchNode.cpp index da4f81cbd5..f423dcea7b 100644 --- a/radiantcore/patch/PatchNode.cpp +++ b/radiantcore/patch/PatchNode.cpp @@ -337,9 +337,6 @@ bool PatchNode::getIntersection(const Ray& ray, Vector3& intersection) void PatchNode::onPreRender(const VolumeTest& volume) { - // Don't do anything when invisible - if (!isForcedVisible() && !m_patch.hasVisibleMaterial()) return; - // Defer the tesselation calculation to the last minute m_patch.evaluateTransform(); m_patch.updateTesselation();