Skip to content

Phase 2: Add properties to EAGL.Node, preserve glTF extras at bridge#2

Merged
robinhilliard merged 1 commit intomainfrom
feature/phase-2
Mar 3, 2026
Merged

Phase 2: Add properties to EAGL.Node, preserve glTF extras at bridge#2
robinhilliard merged 1 commit intomainfrom
feature/phase-2

Conversation

@robinhilliard
Copy link
Owner

@robinhilliard robinhilliard commented Mar 3, 2026

  • 2.1: Add properties field to EAGL.Node struct, new/1, with_matrix/2
  • 2.2: Pass gltf_node.extras through as properties in node_to_eagl_node
  • glTF.Node keeps 'extras' (spec); EAGL.Node uses 'properties' (domain term)
  • Add tests for properties preservation

Note

Low Risk
Low risk additive change: introduces an optional properties field on EAGL.Node and threads glTF extras through the bridge; existing node creation paths are only extended with a new optional key.

Overview
Preserves per-node custom metadata when importing glTF. EAGL.Node gains an optional properties map field, and both Node.new/1 and Node.with_matrix/2 accept :properties.

The glTF→EAGL bridge (node_to_eagl_node/4) now passes gltf_node.extras into EAGL.Node.properties for both TRS and matrix nodes, with new tests asserting extras are preserved (or nil when absent).

Written by Cursor Bugbot for commit 5e9cf55. This will update automatically on new commits. Configure here.

- 2.1: Add properties field to EAGL.Node struct, new/1, with_matrix/2
- 2.2: Pass gltf_node.extras through as properties in node_to_eagl_node
- glTF.Node keeps 'extras' (spec); EAGL.Node uses 'properties' (domain term)
- Add tests for properties preservation

Made-with: Cursor
@robinhilliard robinhilliard merged commit ff6c714 into main Mar 3, 2026
6 checks 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