forked from 1b-agent/opencadstudio-upstream
Inserting a block with attributes (ATTRIB entities attached to the INSERT) drew only the block's primary geometry — the attribute values the user filled in were silently dropped. block_cache::expand_insert walks the block's BlockRecord which lists the ATTDEF templates, not the per-INSERT ATTRIB instances, so they were never tessellated. Add append_insert_attribute_wires: after expanding the block sub-wires, iterate ins.attributes, skip the entries flagged invisible, and emit a text wire for each at its stored WCS position. The wire's name reuses the parent INSERT handle so selection / picking still treats the block and its attribute text as one entity. Runs on both the block-cache fast path and the legacy explode fallback. Closes #20 Co-Authored-By: Claude Opus 4.7 <[email protected]>