Skip to content

Commit ebd0bb8

Browse files
committed
Fix build error
1 parent 9d38e54 commit ebd0bb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Stuff/CustomHolographicButton.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,8 @@ export class CustomHolographicButton extends Button3D {
304304

305305
protected _applyFacade(facadeTexture: AdvancedDynamicTexture) {
306306
facadeTexture.scaleTo(
307-
this._options.width * this.contentResolution,
308-
this._options.height * this.contentResolution
307+
this._options.width * (typeof (this.contentResolution) === "number" ? this.contentResolution : this.contentResolution.width),
308+
this._options.height * (typeof (this.contentResolution) === "number" ? this.contentResolution : this.contentResolution.height)
309309
);
310310
facadeTexture._rootContainer.scaleX = 1;
311311
facadeTexture._rootContainer.scaleY = 1;

0 commit comments

Comments
 (0)