In ArtAssetViewerComponent.setChannel, a mesh whose material is an array (multi-material GLB) stores the whole array in originalMaterials, then assigns mesh.material = swap using only original[0] as the source map.
During a non-lit PBR debug channel the second (and later) materials disappear; lit restores the array so the bug is easy to miss after toggling back. A characterization test in art-asset-viewer.component.spec.ts pins the restore path; the swap still collapses the array.
Expected: each material slot gets its own channel swap (or the debug view keeps the array length).
In `ArtAssetViewerComponent.setChannel`, a mesh whose `material` is an array (multi-material GLB) stores the whole array in `originalMaterials`, then assigns `mesh.material = swap` using only `original[0]` as the source map.
During a non-lit PBR debug channel the second (and later) materials disappear; `lit` restores the array so the bug is easy to miss after toggling back. A characterization test in `art-asset-viewer.component.spec.ts` pins the restore path; the swap still collapses the array.
Expected: each material slot gets its own channel swap (or the debug view keeps the array length).
Source: `libraries/features/art-studio/src/lib/art-asset-viewer/art-asset-viewer.component.ts` (`setChannel` / `channelMaterial`).
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
In
ArtAssetViewerComponent.setChannel, a mesh whosematerialis an array (multi-material GLB) stores the whole array inoriginalMaterials, then assignsmesh.material = swapusing onlyoriginal[0]as the source map.During a non-lit PBR debug channel the second (and later) materials disappear;
litrestores the array so the bug is easy to miss after toggling back. A characterization test inart-asset-viewer.component.spec.tspins the restore path; the swap still collapses the array.Expected: each material slot gets its own channel swap (or the debug view keeps the array length).
Source:
libraries/features/art-studio/src/lib/art-asset-viewer/art-asset-viewer.component.ts(setChannel/channelMaterial).Fixed in
spikersoft-angularPR #823 (a0f0ccd9). Closing.