Skip to content

Commit 670b995

Browse files
author
tpat
committed
Flipped rotation axis
1 parent c335ea4 commit 670b995

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Interface/Modules/Render/ES/SRInterface.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ namespace SCIRun {
665665
mWidgetTransform.setPosition(newPos);
666666

667667
// Rotate
668-
glm::vec3 viewVec = (cam->data.projIV * glm::vec4(0.0, 0.0, 1.0, 0.0)).xyz();
668+
glm::vec3 viewVec = (cam->data.projIV * glm::vec4(0.0, 0.0, -1.0, 0.0)).xyz();
669669
glm::vec3 rotAxis = glm::cross(glm::normalize(viewVec), transVec);
670670
glm::mat4 rot = glm::rotate(glm::length(transVec), rotAxis);
671671
mWidgetTransform.transform = rot * mWidgetTransform.transform;

0 commit comments

Comments
 (0)