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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user