Skip to content

v1.4.4 — snapToDirection frames from the requested direction

Choose a tag to compare

@Nano112 Nano112 released this 09 Jun 15:24
· 6 commits to master since this release

Fixes the snapToDirection() API added in 1.4.2.

Fix

  • snapToDirection() routed through focusOnSchematics(), which for a perspective camera recomputes the view from calculateOptimalViewingAngles (object-shape based) and overwrote the requested direction — so every direction collapsed to the same auto-framed view.
  • It now keeps the requested direction and only solves for the distance that fits the schematic bounds along it, then invalidates for a redraw.