forked from 1b-agent/opencadstudio-upstream
Clicking a block whose body is a solid tried top-level solid meshes first and block-internal ones only as a fallback, so a stray solid behind the block always won and the block couldn't be picked. Merge both into one depth-sorted hit-test (solid_click_hit) keyed by the solid's own handle or the parent INSERT, so the front-most body wins regardless of kind. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>