feat: stabilize OpenSim interactions and landmarks
Some checks failed
CI / rust-skia (Rust only) (push) Has been cancelled
CI / required (push) Has been cancelled

This commit is contained in:
2026-08-21 22:46:10 +02:00
parent adf5165033
commit e4e84dcdcb
27 changed files with 536 additions and 101 deletions

View File

@@ -313,6 +313,14 @@ impl LibremetaverseClientOwner {
#[cfg(feature = "live-grid")]
impl LibremetaverseWorldSnapshotSource {
#[must_use]
pub fn current_region_handle(&self) -> Option<u64> {
self.client
.network()
.native_current_sim()
.map(|simulator| simulator.handle)
}
// One atomic projection keeps native cache reads together. Terrain lookup
// takes integral local coordinates, so finite region positions are floored.
#[allow(clippy::too_many_lines, clippy::cast_possible_truncation)]