1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-14 23:55:48 +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) { if (!sticky) {
this.gridPlane.isVisible = false; this.gridPlane.isVisible = false;
//for (const mesh of grabbing.ghost.getChildMeshes()) { //for (const mesh of grabbing.ghost.getChildMeshes()) {
if (mesh.material instanceof BABYLON.MultiMaterial) { //if (mesh.material instanceof BABYLON.MultiMaterial) {
for (const subMat of mesh.material.subMaterials) { // for (const subMat of mesh.material.subMaterials) {
if (subMat instanceof BABYLON.PBRMaterial) { // if (subMat instanceof BABYLON.PBRMaterial) {
subMat.emissiveColor = new BABYLON.Color3(1, 0, 0); // subMat.emissiveColor = new BABYLON.Color3(1, 0, 0);
} // }
} // }
} else { //} else {
mesh.material.emissiveColor = new BABYLON.Color3(1, 0, 0); // mesh.material.emissiveColor = new BABYLON.Color3(1, 0, 0);
} //}
//} //}
} }