mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-26 23:29:38 -05:00
Selection failures on a real desktop kept looking identical from the UI whether the ray missed the solid, the click was rejected as a drag, or the press never reached the tool at all. The status line added inedb1adbfa3reports WHICH body/face was picked, so it distinguishes "picked" from "silence" and nothing finer -- not enough to tell those three apart. This narrates the whole press -> release -> ray path on stderr, one distinct line per failure mode: down x= y= the press reached the tool up with no pending press the press was eaten upstream up ... drift=N / rejected the click-vs-drag threshold decided ray tris=N -> body= face= t= the ray reached the solid (or missed) no solid data (bodies= mesh=) the pick pointers were never wired Gated on getenv("SNAPORCA_PICK_TRACE"), cached in a function-local static, so a normal build pays one load and prints nothing. It ships enabled-on- demand because the failing environment is a real X session with a real mouse, which the headless rig cannot reproduce. First use retired a wrong theory of my own: the trace showed drift=0 on three consecutive picks, so the widened threshold inedb1adbfa3was not what fixed anything. The reported symptom is best explained by a stale pre-orcawidgets binary left running alongside the current one. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BVzKmX6Y1aEteit1HTXG4Q