@crystaldesign/real-time-viewer 26.5.0-beta.2 → 26.5.0-beta.21

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.
@@ -3224,8 +3224,6 @@ var customMat = /*#__PURE__*/function () {
3224
3224
  parsedMat.baseTexture = doReCtrTex(parsedMat.baseTexture);
3225
3225
  parsedMat.metallicRoughnessTexture = doReCtrTex(parsedMat.metallicRoughnessTexture);
3226
3226
  parsedMat.normalTexture = doReCtrTex(parsedMat.normalTexture);
3227
- parsedMat._useAlphaFromAlbedoTexture = false;
3228
- parsedMat.transparencyMode = 0;
3229
3227
  found = !!parsedMat.baseTexture;
3230
3228
  if (!found) LOG$1.warn('MISSING_MATERIAL: could not get material ' + _customMat.name + ' for iln ' + _customMat.blob);
3231
3229
  if (setDataRow) useUtilStoreContext().setAnalyzeDataRow({
@@ -3240,8 +3238,8 @@ var customMat = /*#__PURE__*/function () {
3240
3238
  mat: parsedMat,
3241
3239
  found: true
3242
3240
  });
3243
- case 29:
3244
- _context.prev = 29;
3241
+ case 27:
3242
+ _context.prev = 27;
3245
3243
  _context.t0 = _context["catch"](9);
3246
3244
  if (setDataRow) useUtilStoreContext().setAnalyzeDataRow({
3247
3245
  type: 'MAT',
@@ -3251,17 +3249,17 @@ var customMat = /*#__PURE__*/function () {
3251
3249
  path: _customMat.blob,
3252
3250
  sizeMb: 0
3253
3251
  });
3254
- case 32:
3252
+ case 30:
3255
3253
  mat = new PBRMetallicRoughnessMaterial(_customMat.name, sceneStore.scene);
3256
3254
  return _context.abrupt("return", {
3257
3255
  mat: mat,
3258
3256
  found: true
3259
3257
  });
3260
- case 34:
3258
+ case 32:
3261
3259
  case "end":
3262
3260
  return _context.stop();
3263
3261
  }
3264
- }, _callee, null, [[9, 29]]);
3262
+ }, _callee, null, [[9, 27]]);
3265
3263
  }));
3266
3264
  return function customMat(_x) {
3267
3265
  return _ref.apply(this, arguments);
@@ -3325,7 +3323,7 @@ function _findAssets() {
3325
3323
  mesh.metadata = {
3326
3324
  lastUsed: Date.now()
3327
3325
  };
3328
- if (mesh._isMesh()) {
3326
+ if (mesh._isMesh) {
3329
3327
  mesh.removeVerticesData(VertexBuffer.ColorKind);
3330
3328
  } else {
3331
3329
  mesh.getChildMeshes().forEach(function (m) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/CustomMaterial/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,4BAA4B,EAAE,MAAM,4DAA4D,CAAC;AAK1G,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;CAC3C;AAGD,QAAA,MAAM,SAAS,cAAqB,cAAc,eAAc,OAAO,KAAU,OAAO,CAAC;IAAE,GAAG,EAAE,4BAA4B,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CAsD7I,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/CustomMaterial/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,4BAA4B,EAAE,MAAM,4DAA4D,CAAC;AAK1G,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,C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