mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-03-21 03:30:42 +00:00
Update engine.ts
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user