Skip to content

Commit

Permalink
Cycle through viewports, just like FreeWRL and Instant Reality
Browse files Browse the repository at this point in the history
  • Loading branch information
michaliskambi committed Jul 1, 2024
1 parent 326e6e3 commit b63807d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/v3dsceneviewpoints.pas
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
Copyright 2004-2022 Michalis Kamburelis.
Copyright 2004-2024 Michalis Kamburelis.
This file is part of "castle-model-viewer".
Expand Down Expand Up @@ -346,7 +346,7 @@ procedure TMenuViewpoints.Previous(const Viewport: TCastleViewport);
Item: TMenuItemRadio;
begin
if (ViewpointsRadioGroup <> nil) and
ViewpointsRadioGroup.Previous(Item) then
ViewpointsRadioGroup.Previous(Item, true) then
begin
BoundViewpoint := Item as TMenuItemViewpoint;
JumpToViewpoint(Viewport, BoundViewpoint.Viewpoint);
Expand All @@ -358,7 +358,7 @@ procedure TMenuViewpoints.Next(const Viewport: TCastleViewport);
Item: TMenuItemRadio;
begin
if (ViewpointsRadioGroup <> nil) and
ViewpointsRadioGroup.Next(Item) then
ViewpointsRadioGroup.Next(Item, true) then
begin
BoundViewpoint := Item as TMenuItemViewpoint;
JumpToViewpoint(Viewport, BoundViewpoint.Viewpoint);
Expand Down

0 comments on commit b63807d

Please sign in to comment.