Skip to content

Read light objects in Navisworks partition trailers - #293

Merged
mahach666 merged 1 commit into
mainfrom
codex/read-partition-trailer
Dec 4, 2026
Merged

mahach666 merged 1 commit into
mainfrom
codex/read-partition-trailer

Conversation

@mahach666

Copy link
Copy Markdown
Collaborator

Some NWD partition trailers contain light objects before the source metadata. The hierarchy reader treated the light bytes as part of that metadata and failed while reading the next fields.

Read the class-27 lights and their optional class-185 assets through the existing object reader. This preserves object IDs and stream alignment for the source metadata and subsequent partitions.

Verification

  • Added synthetic tests for the observed light forms, malformed light records and a following partition.
  • Verified a real NWD opens with the scene tree and mesh links using the normal reader and strict asynchronous I/O.
  • Release build and tests passed on .NET 8 and .NET 10. The format check and native-core-only build passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant