mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-21 23:55:34 +02:00
Update engine.ts
This commit is contained in:
@@ -633,6 +633,7 @@ export class RoomEngine {
|
|||||||
const soMesh = this.objectMeshs.get(soid)!;
|
const soMesh = this.objectMeshs.get(soid)!;
|
||||||
soMesh.parent = null;
|
soMesh.parent = null;
|
||||||
soMesh.position = soMesh.position.add(mesh.position);
|
soMesh.position = soMesh.position.add(mesh.position);
|
||||||
|
soMesh.rotation = soMesh.rotation.add(mesh.rotation);
|
||||||
removeStickyParentRecursively(soMesh);
|
removeStickyParentRecursively(soMesh);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -666,6 +667,7 @@ export class RoomEngine {
|
|||||||
setStickyParentRecursively(soMesh);
|
setStickyParentRecursively(soMesh);
|
||||||
soMesh.parent = mesh;
|
soMesh.parent = mesh;
|
||||||
soMesh.position = soMesh.position.subtract(mesh.position);
|
soMesh.position = soMesh.position.subtract(mesh.position);
|
||||||
|
soMesh.rotation = soMesh.rotation.subtract(mesh.rotation);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
setStickyParentRecursively(highlightedObject);
|
setStickyParentRecursively(highlightedObject);
|
||||||
|
|||||||
Reference in New Issue
Block a user