fix(boxes): make sure that invisible f3D boxes are really invisibles
This commit is contained in:
parent
b5059e848a
commit
77670d8ec0
1 changed files with 5 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue