Skip to content

Commit d4e5d99

Browse files
committed
Fix camera clipping issue
1 parent d883546 commit d4e5d99

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Viewer/SceneViewController.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ class SceneViewController: NSViewController {
168168
didSet {
169169
refreshGeometry()
170170
if let bounds = geometry?.bounds, !bounds.isEmpty,
171-
!bounds.intersects(lastBounds)
171+
!bounds.intersects(lastBounds) || bounds
172+
.containsPoint(Vector(cameraNode.position))
172173
{
173174
lastBounds = bounds
174175
updateAxesAndCamera()

0 commit comments

Comments
 (0)