Reads context.duplicates (the duplicate-geometry ids the
inspection found) plus issue.resourceId (the canonical id) and
for every mesh that points at any of the duplicates, rebuilds it
against the canonical geometry using the supported detach +
destroy + recreate + reattach pattern. Once no live mesh
references a duplicate, the duplicate geometry is destroyed.
Constraints:
Defensive: any duplicate id that still has a referencing
mesh after the rebuild loop (shouldn't happen given correct
inspection input, but guards against malformed reports) is
left in place rather than destroyed mid-bind.
Auto-fix for
GEOMETRY_DUPLICATE.Reads
context.duplicates(the duplicate-geometry ids the inspection found) plusissue.resourceId(the canonical id) and for every mesh that points at any of the duplicates, rebuilds it against the canonical geometry using the supported detach + destroy + recreate + reattach pattern. Once no live mesh references a duplicate, the duplicate geometry is destroyed.Constraints: