The list of meshes doesn't have names in the Embedded Viewer #249

This commit is contained in:
kovacsv 2022-04-21 18:09:02 +02:00
parent d3f930f72c
commit 104fa9a0ff

View File

@ -304,6 +304,7 @@ export function ConvertModelToThreeObject (model, params, output, callbacks)
}
let threeMesh = new THREE.Mesh (threeGeometry, meshThreeMaterials);
threeMesh.name = mesh.GetName ();
threeMesh.userData = {
originalMeshId : meshInstanceId,
originalMaterials : meshOriginalMaterials,