cad-editor/src/scene
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven bd1c51c682 fix(viewport): correct ViewCube flip + activation/border for off-screen viewports
ViewCube "already there → flip to opposite" tested the main (paper) camera,
which always looks straight down, so inside a floating viewport clicking
"top" landed on "bottom". Route the check through active_gaze_dir() — the
gaze of the camera the cube actually reflects.

Off-screen viewports:
- The active-viewport outline clamped only its origin while keeping full
  width/height, shifting the whole border inward. Clip it to the visible
  canvas (origin AND size) so it hugs the real viewport edge.
- Double-click activation tested each viewport's full paper rect, so a
  click on empty space beside a viewport that runs off-screen matched its
  partly-off-canvas rect and switched to it. Activation now keys on the
  visible on-screen rect (viewport_at_screen_point), picks the smallest
  (topmost) on overlap, and accepts the border-wire pick only when the
  click also lands inside that viewport's visible rect — so a far
  viewport's edge passing near the cursor can't steal the activation.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 23:14:46 +03:00
..
cache refactor: remove block_cache local_offset (fully absolute + double-single) 2026-06-24 20:37:52 +03:00
convert refactor: drop residual zero-subtraction from world_offset removal 2026-06-24 18:38:23 +03:00
model refactor: remove dead world_offset plumbing (RTE migration is complete) 2026-06-24 18:35:02 +03:00
pick refactor: remove the last world_offset zero-locals 2026-06-24 18:55:00 +03:00
pipeline refactor: remove the legacy full view_proj (CPU cull now relative-to-eye) 2026-06-24 20:14:41 +03:00
text feat(render): double-single fills for the face3d pipeline 2026-06-23 18:28:52 +03:00
view refactor: unify eye() to a single f64 accessor (drop eye_f64) 2026-06-24 21:38:51 +03:00
mod.rs fix(viewport): correct ViewCube flip + activation/border for off-screen viewports 2026-06-24 23:14:46 +03:00