Skip to content

Add StripMaterialsBlock - #22

Merged
alexchuber merged 8 commits into
mainfrom
delete-materials-block
Sep 19, 2026
Merged

alexchuber merged 8 commits into
mainfrom
delete-materials-block

Conversation

@alexchuber

Copy link
Copy Markdown
Contributor

Summary

Adds StripMaterialsBlock to prepare glTF assets for runtime-assigned materials. It removes all materials and assignments, plus textures and images made unused by their removal, while preserving previously unused textures, surviving shared resources, and unrelated scene content.

Includes cleanup for material variants and orphaned extension data, a public export, concise block documentation, and unit/integration coverage.

Validation

  • All 155 tests pass after rebasing onto main.
  • Lint, typecheck, formatting, and workspace builds pass.
  • Eight-domain self-review completed with Terra at high effort; no actionable findings.

alexchuber and others added 8 commits September 18, 2026 20:18
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@alexchuber
alexchuber merged commit eae03b4 into main Sep 19, 2026
2 checks passed
alexchuber added a commit to alexchuber/Node-Assets that referenced this pull request Sep 21, 2026
* feat: add material deletion block

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix: preserve shared glTF resources

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix: clean removed texture metadata

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix: exhaust material resource cleanup

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor: rename material stripping block

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix: update workspace test imports

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* docs: remove material stripping example

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* docs: tighten strip materials behavior

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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