Skip to content

Commit

Permalink
Gui: Fix animation translation
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexbas committed Oct 22, 2023
1 parent 369d865 commit 3cf7c78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Gui/NavigationAnimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ void FixedTimeAnimation::update(const QVariant& value)

SbRotation rotation(rotationAxis, angle - prevAngle);

camera->position = camera->position.getValue() - prevTranslation;
navigation->reorientCamera(camera, rotation, rotationCenter);
camera->position = camera->position.getValue() + translation - prevTranslation;
camera->position = camera->position.getValue() + translation;

prevAngle = angle;
prevTranslation = translation;
Expand Down

0 comments on commit 3cf7c78

Please sign in to comment.