Skip to content

Commit

Permalink
fix: ValueError when b.item.deleted_length > 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Seb-sti1 committed Nov 19, 2024
1 parent a58c9a8 commit d290ee3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rmscene/scene_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,8 @@ def build_tree(tree: SceneTree, blocks: Iterable[Block]):
elif isinstance(b, SceneGroupItemBlock):
# Add this entry to children of parent_id
node_id = b.item.value
if b.item.deleted_length > 0:
continue
if node_id not in tree:
raise ValueError(
"Node does not exist for SceneGroupItemBlock: %s" % node_id
Expand Down

0 comments on commit d290ee3

Please sign in to comment.