diff --git a/gamecore/modules/world/actors/utils/boxes/parent.lua b/gamecore/modules/world/actors/utils/boxes/parent.lua index 314cbab..45c570b 100644 --- a/gamecore/modules/world/actors/utils/boxes/parent.lua +++ b/gamecore/modules/world/actors/utils/boxes/parent.lua @@ -37,7 +37,11 @@ function Box3D:new(owner, w, h, d, isVisible) self.shadowSources = {} self.needRedraw = false - self.isVisible = isVisible or true + if (isVisible == nil) then + self.isVisible = true + else + self.isVisible = isVisible + end if (self.isVisible) then self:setTexture()