Skip to content

Commit

Permalink
Fix issue that was not showing cubes when they have all their faces s…
Browse files Browse the repository at this point in the history
…hown with no textures (#7313)
  • Loading branch information
AlexandreSi authored Jan 15, 2025
1 parent 7d713d9 commit 7844ee1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Extensions/3D/JsExtension.js
Original file line number Diff line number Diff line change
Expand Up @@ -2332,9 +2332,9 @@ module.exports = {
this._pixiObject = new PIXI.Graphics();
this._pixiContainer.addChild(this._pixiObject);

this._faceResourceNames = ['', '', '', '', '', ''];
this._faceVisibilities = [true, true, true, true, true, true];
this._shouldRepeatTextureOnFace = [true, true, true, true, true, true];
this._faceResourceNames = new Array(6).fill(null);
this._faceVisibilities = new Array(6).fill(null);
this._shouldRepeatTextureOnFace = new Array(6).fill(null);
this._facesOrientation = 'Y';
this._backFaceUpThroughWhichAxisRotation = 'X';
this._shouldUseTransparentTexture = false;
Expand Down

0 comments on commit 7844ee1

Please sign in to comment.