1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-14 12:15:44 +02:00

Update engine.ts

This commit is contained in:
syuilo
2026-04-03 19:23:47 +09:00
parent 81414a18d3
commit f5ebbbca50

View File

@@ -235,6 +235,13 @@ class ModelManager {
newMesh.parent = null;
}
//newMesh.bakeCurrentTransformIntoVertices();
if (newMesh.getVerticesData(BABYLON.VertexBuffer.UVKind) == null) {
const vertexCount = newMesh.getTotalVertices();
const uvs = new Array(vertexCount * 2).fill(0);
newMesh.setVerticesData(BABYLON.VertexBuffer.UVKind, uvs, false, 2);
}
toMerge.push(newMesh);
}