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