Explorar el Código

Fix Button 3D content swap

Sebastien Vandenberghe hace 5 años
padre
commit
69be5814e0
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      gui/src/3D/controls/button3D.ts

+ 3 - 0
gui/src/3D/controls/button3D.ts

@@ -124,6 +124,9 @@ export class Button3D extends AbstractButton3D {
             this._facadeTexture.rootContainer.scaleY = this._contentScaleRatio;
             this._facadeTexture.premulAlpha = true;
         }
+        else {
+            this._facadeTexture.rootContainer.clearControls();
+        }
 
         this._facadeTexture.addControl(value);