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

Update engine.ts

This commit is contained in:
syuilo
2026-04-22 12:12:58 +09:00
parent de795a48e8
commit 08a0f03a45

View File

@@ -677,15 +677,15 @@ export class RoomEngine extends EventEmitter<RoomEngineEvents> {
if (!sticky) {
this.gridPlane.isVisible = false;
//for (const mesh of grabbing.ghost.getChildMeshes()) {
if (mesh.material instanceof BABYLON.MultiMaterial) {
for (const subMat of mesh.material.subMaterials) {
if (subMat instanceof BABYLON.PBRMaterial) {
subMat.emissiveColor = new BABYLON.Color3(1, 0, 0);
}
}
} else {
mesh.material.emissiveColor = new BABYLON.Color3(1, 0, 0);
}
//if (mesh.material instanceof BABYLON.MultiMaterial) {
// for (const subMat of mesh.material.subMaterials) {
// if (subMat instanceof BABYLON.PBRMaterial) {
// subMat.emissiveColor = new BABYLON.Color3(1, 0, 0);
// }
// }
//} else {
// mesh.material.emissiveColor = new BABYLON.Color3(1, 0, 0);
//}
//}
}