@xviewer.js/core 1.0.0-alpha.43 → 1.0.0-alpha.44

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/module.js CHANGED
@@ -1063,8 +1063,8 @@ class aLoader {
1063
1063
  if (object.isMesh) {
1064
1064
  meshes.push(object);
1065
1065
  const mat = object.material;
1066
- if (Array.isArray(mat)) mat.forEach((v)=>materials[v.name] = v);
1067
- else materials[mat.name] = mat;
1066
+ if (Array.isArray(mat)) mat.forEach((v)=>materials[v.uuid] = v);
1067
+ else materials[mat.uuid] = mat;
1068
1068
  }
1069
1069
  queue.push(...object.children);
1070
1070
  }
@@ -1076,11 +1076,11 @@ class aLoader {
1076
1076
  }
1077
1077
  });
1078
1078
  });
1079
- node.userData.meshData = {
1079
+ Object.assign(node.userData, {
1080
1080
  meshes,
1081
1081
  materials,
1082
1082
  textures
1083
- };
1083
+ });
1084
1084
  return node;
1085
1085
  }
1086
1086
  constructor(manager){