mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-25 17:10:43 +00:00
Update engine.ts
This commit is contained in:
parent
cb1d9c38df
commit
4ee5c73bca
1 changed files with 2 additions and 0 deletions
|
|
@ -633,6 +633,7 @@ export class RoomEngine {
|
|||
const soMesh = this.objectMeshs.get(soid)!;
|
||||
soMesh.parent = null;
|
||||
soMesh.position = soMesh.position.add(mesh.position);
|
||||
soMesh.rotation = soMesh.rotation.add(mesh.rotation);
|
||||
removeStickyParentRecursively(soMesh);
|
||||
}
|
||||
};
|
||||
|
|
@ -666,6 +667,7 @@ export class RoomEngine {
|
|||
setStickyParentRecursively(soMesh);
|
||||
soMesh.parent = mesh;
|
||||
soMesh.position = soMesh.position.subtract(mesh.position);
|
||||
soMesh.rotation = soMesh.rotation.subtract(mesh.rotation);
|
||||
}
|
||||
};
|
||||
setStickyParentRecursively(highlightedObject);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue