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

Update engine.ts

This commit is contained in:
syuilo
2026-04-28 09:00:10 +09:00
parent 746c16aecc
commit 72fbc4bc9c

View File

@@ -1241,6 +1241,9 @@ export class RoomEngine extends EventEmitter<RoomEngineEvents> {
const selectedObject = this.selected.objectEntity.rootMesh;
this.clearHighlight();
const initialPosition = selectedObject.position.clone();
const initialRotation = selectedObject.rotation.clone();
// 子から先に適用していく
const setStickyParentRecursively = (mesh: BABYLON.AbstractMesh) => {
const stickyObjectIds = Array.from(this.roomState.installedObjects.filter(o => o.sticky === mesh.metadata.objectId)).map(o => o.id);
@@ -1278,9 +1281,6 @@ export class RoomEngine extends EventEmitter<RoomEngineEvents> {
const dir = this.camera.getDirection(BABYLON.Axis.Z).scale(this.scene.useRightHandedSystem ? -1 : 1);
const initialPosition = selectedObject.position.clone();
const initialRotation = selectedObject.rotation.clone();
let sticky: string | null;
this.grabbingCtx = {