mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-22 21:04:08 +02:00
Update engine.ts
This commit is contained in:
@@ -235,6 +235,13 @@ class ModelManager {
|
|||||||
newMesh.parent = null;
|
newMesh.parent = null;
|
||||||
}
|
}
|
||||||
//newMesh.bakeCurrentTransformIntoVertices();
|
//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);
|
toMerge.push(newMesh);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user