From 8690849209fd37eace1f05acb2b2cd202ceec6a6 Mon Sep 17 00:00:00 2001 From: Adnan Munawar Date: Tue, 23 Jul 2024 17:12:44 +0500 Subject: [PATCH] Fix #233 --- ambf_framework/afFramework.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ambf_framework/afFramework.cpp b/ambf_framework/afFramework.cpp index ea261b82..c3f050c1 100644 --- a/ambf_framework/afFramework.cpp +++ b/ambf_framework/afFramework.cpp @@ -499,8 +499,9 @@ bool afVisualUtils::createFromAttribs(afVisualAttributes *attribs, cMultiMesh *m // Important to set the transparency after setting the material, otherwise the alpha // channel ruins the Z-buffer depth testing in some way. mesh->setTransparencyLevel(attribs->m_colorAttribs.m_alpha); - mesh->setShowEnabled(attribs->m_visible); } + + mesh->setShowEnabled(attribs->m_visible); return true; }