Skip to content

Handle synchronization blocks when calculating vector counts - #48

Open
SolarisCulture wants to merge 1 commit into
Digital-Production-Aachen:mainfrom
SolarisCulture:fix/sync-block-vector-count
Open

Handle synchronization blocks when calculating vector counts#48
SolarisCulture wants to merge 1 commit into
Digital-Production-Aachen:mainfrom
SolarisCulture:fix/sync-block-vector-count

Conversation

@SolarisCulture

Copy link
Copy Markdown

Synchronization blocks contain no coordinate vectors, but VectorBlockExtensions.VectorCount did not handle SyncBlock. It therefore threw NotImplementedException while OVFFileWriter calculated work-plane bounds during file finalization.

This change treats SyncBlock like ExposurePause and returns a vector count of zero.

Tests added:

  • VectorCount returns zero for a synchronization block.
  • A job containing SyncBlock and ExposurePause can be written, read back, and deleted successfully.

- Add SyncBlock to the zero-vector cases

TestOVF.cs or a dedicated test file
- Unit test for VectorCount
- Write/read integration test
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