@crystaldesign/real-time-viewer 25.9.0-rc.8 → 25.9.0
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/build/esm/index.js
CHANGED
|
@@ -3173,7 +3173,7 @@ function _findAssets() {
|
|
|
3173
3173
|
});
|
|
3174
3174
|
geo.material = mat.mat;
|
|
3175
3175
|
oldMat = sceneStore.scene.getMaterialByUniqueID(oldMatId);
|
|
3176
|
-
if (oldMat) {
|
|
3176
|
+
if (!(!oldMat || oldMat.id == mat.mat.id)) {
|
|
3177
3177
|
_context.next = 17;
|
|
3178
3178
|
break;
|
|
3179
3179
|
}
|
|
@@ -3457,7 +3457,7 @@ function _createOrGetMaterial() {
|
|
|
3457
3457
|
break;
|
|
3458
3458
|
}
|
|
3459
3459
|
cachedMaterial = _step5.value;
|
|
3460
|
-
if (!(
|
|
3460
|
+
if (!(fileName === cachedMaterial.mat.name)) {
|
|
3461
3461
|
_context6.next = 11;
|
|
3462
3462
|
break;
|
|
3463
3463
|
}
|
|
@@ -3890,7 +3890,7 @@ function createCams(scene, viewpoint) {
|
|
|
3890
3890
|
return [createCam({
|
|
3891
3891
|
name: 'defaultCam',
|
|
3892
3892
|
isEnabled: true,
|
|
3893
|
-
pos: new Vector3(-
|
|
3893
|
+
pos: new Vector3(-2, 2.2, 8),
|
|
3894
3894
|
rot: new Vector3(7.75, 150, 0),
|
|
3895
3895
|
parent: undefined
|
|
3896
3896
|
})];
|