zakeke-configurator-react 0.0.170 → 0.0.172
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +13 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28996,6 +28996,7 @@ var MeshDesignManager = /*#__PURE__*/function () {
|
|
|
28996
28996
|
_defineProperty(this, "_textureHeight", MeshDesignManager.DEFAULT_SIZE);
|
|
28997
28997
|
_defineProperty(this, "_coordinatesIndex", 0);
|
|
28998
28998
|
// canale UV per le texture
|
|
28999
|
+
_defineProperty(this, "_currentVisibliity", true);
|
|
28999
29000
|
_defineProperty(this, "_canvasMesh", null);
|
|
29000
29001
|
// mesh clone per l'applicazione della texture dinamica (generata in base al design rappresentato sul canvas)
|
|
29001
29002
|
_defineProperty(this, "_originalCanvasMeshPosition", null);
|
|
@@ -29558,29 +29559,31 @@ var MeshDesignManager = /*#__PURE__*/function () {
|
|
|
29558
29559
|
i = 0;
|
|
29559
29560
|
case 3:
|
|
29560
29561
|
if (!(i < this._scene.meshes.length)) {
|
|
29561
|
-
_context2.next =
|
|
29562
|
+
_context2.next = 15;
|
|
29562
29563
|
break;
|
|
29563
29564
|
}
|
|
29564
29565
|
mesh = this._scene.meshes[i];
|
|
29565
29566
|
if (!(mesh && mesh.metadata && mesh.metadata.originalMeshID && mesh.metadata.originalMeshID == this._mesh.id)) {
|
|
29566
|
-
_context2.next =
|
|
29567
|
+
_context2.next = 12;
|
|
29567
29568
|
break;
|
|
29568
29569
|
}
|
|
29569
29570
|
this._canvasMesh = mesh;
|
|
29571
|
+
this._canvasMesh.isVisible = this._currentVisibliity;
|
|
29570
29572
|
this._normalmapMaterial = this._mesh.material;
|
|
29571
29573
|
this._originalMeshNormalmapTexture = this.getMaterialNormalmap(this._normalmapMaterial);
|
|
29572
29574
|
this._originalMeshLightmapTexture = this.getMaterialLightmap(this._normalmapMaterial);
|
|
29573
|
-
return _context2.abrupt("break",
|
|
29574
|
-
case
|
|
29575
|
+
return _context2.abrupt("break", 15);
|
|
29576
|
+
case 12:
|
|
29575
29577
|
i++;
|
|
29576
29578
|
_context2.next = 3;
|
|
29577
29579
|
break;
|
|
29578
|
-
case
|
|
29580
|
+
case 15:
|
|
29579
29581
|
if (!this._canvasMesh) {
|
|
29580
29582
|
name = this._mesh.name + " - clone";
|
|
29581
29583
|
this._canvasMesh = this._mesh.clone(name, null);
|
|
29582
29584
|
if (this._canvasMesh) {
|
|
29583
29585
|
this._canvasMesh.id = Zakeke.generateUUID();
|
|
29586
|
+
this._canvasMesh.isVisible = this._currentVisibliity;
|
|
29584
29587
|
this._canvasMesh.doNotSerialize = true;
|
|
29585
29588
|
this._canvasMesh.isPickable = false;
|
|
29586
29589
|
this._canvasMesh.metadata = {};
|
|
@@ -29595,12 +29598,12 @@ var MeshDesignManager = /*#__PURE__*/function () {
|
|
|
29595
29598
|
this._originalCanvasMeshScaling = this._canvasMesh.scaling;
|
|
29596
29599
|
}
|
|
29597
29600
|
if (this._normalmapMaterial) {
|
|
29598
|
-
_context2.next =
|
|
29601
|
+
_context2.next = 20;
|
|
29599
29602
|
break;
|
|
29600
29603
|
}
|
|
29601
|
-
_context2.next =
|
|
29604
|
+
_context2.next = 20;
|
|
29602
29605
|
return this.setupNormalmapMaterialAsync();
|
|
29603
|
-
case
|
|
29606
|
+
case 20:
|
|
29604
29607
|
case "end":
|
|
29605
29608
|
return _context2.stop();
|
|
29606
29609
|
}
|
|
@@ -30540,7 +30543,7 @@ var MeshDesignManager = /*#__PURE__*/function () {
|
|
|
30540
30543
|
this.removeOuterShadowTexture();
|
|
30541
30544
|
case 76:
|
|
30542
30545
|
this.disposeOldDynamicMaterial();
|
|
30543
|
-
this._canvasMesh.isVisible = config.getShowDesign();
|
|
30546
|
+
this._canvasMesh.isVisible = this._currentVisibliity && config.getShowDesign();
|
|
30544
30547
|
case 78:
|
|
30545
30548
|
if (isBlank) {
|
|
30546
30549
|
this._canvasMesh.isVisible = false;
|
|
@@ -31203,6 +31206,7 @@ var MeshDesignManager = /*#__PURE__*/function () {
|
|
|
31203
31206
|
}, {
|
|
31204
31207
|
key: "setDesignMeshVisibility",
|
|
31205
31208
|
value: function setDesignMeshVisibility(visibile) {
|
|
31209
|
+
this._currentVisibliity = visibile;
|
|
31206
31210
|
if (this._canvasMesh) {
|
|
31207
31211
|
this._canvasMesh.isVisible = visibile;
|
|
31208
31212
|
}
|