aboutsummaryrefslogtreecommitdiff
path: root/crates/fparkan-msh/src/lib.rs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-10-31 00:05:42 +0300
committerValentin Popov <valentin@popov.link>2026-10-31 00:05:42 +0300
commitdbfdcf1e4cf5fd6adb43505ff95db10c927dd8ef (patch)
treeaf13e2215c15a745f531002702d555307ed4006d /crates/fparkan-msh/src/lib.rs
parent54105297809271cad7b03c784910dbe1e9b0de41 (diff)
downloadfparkan-dbfdcf1e4cf5fd6adb43505ff95db10c927dd8ef.tar.xz
fparkan-dbfdcf1e4cf5fd6adb43505ff95db10c927dd8ef.zip
fix(runtime): follow linked nodes after building helper hits
Diffstat (limited to 'crates/fparkan-msh/src/lib.rs')
-rw-r--r--crates/fparkan-msh/src/lib.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/crates/fparkan-msh/src/lib.rs b/crates/fparkan-msh/src/lib.rs
index 3bbe17e..f9d7555 100644
--- a/crates/fparkan-msh/src/lib.rs
+++ b/crates/fparkan-msh/src/lib.rs
@@ -200,7 +200,13 @@ pub struct Batch {
pub material_index: u8,
/// Lightmap selector at byte offset `+0x05`.
pub lightmap_index: u8,
- /// Local batch index at byte offset `+0x06`.
+ /// Raw word at byte offset `+0x06`.
+ ///
+ /// In the native building-collision helper retry, this word together with
+ /// the model's base index selects the next linked Node38 root. For a
+ /// standalone `ModelAsset`, that base is zero, so the link is this raw
+ /// value. Keep the decoded field lossless; its meaning depends on the
+ /// query path and batch flags.
pub local_batch_index: u16,
/// Index count.
pub index_count: u16,