File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
packages/engine/Source/Scene Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -162,13 +162,12 @@ function rebindAllGlyphs(labelCollection, label) {
162162 ) ;
163163 label . _backgroundBillboard = backgroundBillboard ;
164164 }
165- if ( defined ( backgroundBillboard ) ) {
166- updateBackgroundBillboard (
167- backgroundBillboardCollection ,
168- label ,
169- backgroundBillboard ,
170- ) ;
171- }
165+
166+ updateBackgroundBillboard (
167+ backgroundBillboardCollection ,
168+ label ,
169+ backgroundBillboard ,
170+ ) ;
172171
173172 const glyphBillboardCollection = labelCollection . _glyphBillboardCollection ;
174173 const glyphTextureCache = glyphBillboardCollection . billboardTextureCache ;
@@ -318,6 +317,9 @@ function updateBackgroundBillboard(
318317 label ,
319318 backgroundBillboard ,
320319) {
320+ if ( ! defined ( backgroundBillboard ) ) {
321+ return ;
322+ }
321323 const showBackground =
322324 label . show &&
323325 label . _showBackground &&
You can’t perform that action at this time.
0 commit comments