Fix recording bug introduced with anchor-and-aim

This commit is contained in:
Emil Axelsson
2019-04-02 17:36:49 +02:00
parent 5d4ceb6286
commit c073bfbcf8

View File

@@ -121,7 +121,7 @@ datamessagestructures::CameraKeyframe ExternInteraction::generateCameraKeyframe(
if (kf._followNodeRotation) {
kf._position = glm::inverse(focusNode->worldRotationMatrix()) * kf._position;
kf._rotation =
global::navigationHandler.orbitalNavigator().anchorNodeToCameraVector();
global::navigationHandler.orbitalNavigator().anchorNodeToCameraRotation();
}
else {
kf._rotation = global::navigationHandler.camera()->rotationQuaternion();