fix(boxes): make sure that invisible f3D boxes are really invisibles

This commit is contained in:
Kazhnuz 2019-09-07 20:38:41 +02:00
parent b5059e848a
commit 77670d8ec0

View file

@ -37,7 +37,11 @@ function Box3D:new(owner, w, h, d, isVisible)
self.shadowSources = {} self.shadowSources = {}
self.needRedraw = false self.needRedraw = false
self.isVisible = isVisible or true if (isVisible == nil) then
self.isVisible = true
else
self.isVisible = isVisible
end
if (self.isVisible) then if (self.isVisible) then
self:setTexture() self:setTexture()