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