Skip to content

Commit 4d0b23d

Browse files
committed
fix some issues with zoom in bin preview
1 parent a7b0d4e commit 4d0b23d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scene/ModelViewer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ namespace PreviewWidget {
118118
// TODO: Draw Grid somehow
119119

120120
if(Model != nullptr){
121-
Camera.SetEye({Model->GetRootPosition().x + Zoom + (sin(Rotate) * (Zoom * 2)), Model->GetRootPosition().y + Zoom, Model->GetRootPosition().z + Zoom - (cos(Rotate) * (Zoom * 2))});
121+
Camera.SetEye({Model->GetRootPosition().x + (sin(Rotate) * (Zoom * 2)), Model->GetRootPosition().y + Zoom, Model->GetRootPosition().z - (cos(Rotate) * (Zoom * 2))});
122122

123123
// Ow.
124124
J3DUniformBufferObject::SetProjAndViewMatrices(Camera.GetProjectionMatrix(), Camera.GetViewMatrix());

0 commit comments

Comments
 (0)