[Libreoffice-commits] core.git: avmedia/source
Zolnai Tamás
tamas.zolnai at collabora.com
Wed Jun 25 08:35:13 PDT 2014
avmedia/source/opengl/oglwindow.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit f2b5ece0caca18f21f7c8e42a84d451bb399ec35
Author: Zolnai Tamás <tamas.zolnai at collabora.com>
Date: Wed Jun 25 16:03:14 2014 +0200
glTF rendering: moving in walktrough mode is to fast
Change-Id: I2b7869c6c14b69732db864a03a2d9b6638424cf7
diff --git a/avmedia/source/opengl/oglwindow.cxx b/avmedia/source/opengl/oglwindow.cxx
index 5d85d62..f45468e 100644
--- a/avmedia/source/opengl/oglwindow.cxx
+++ b/avmedia/source/opengl/oglwindow.cxx
@@ -254,12 +254,12 @@ IMPL_LINK(OGLWindow, CameraHandler, VclWindowEvent*, pEvent)
vMup = glm::normalize(vMup);
vMup *= 25.0f;
- if(nCode == KEY_W)vMoveBy += vMove*(0.005f*fModelSize);
- if(nCode == KEY_S)vMoveBy -= vMove*(0.005f*fModelSize);
+ if(nCode == KEY_W)vMoveBy += vMove*(0.0005f*fModelSize);
+ if(nCode == KEY_S)vMoveBy -= vMove*(0.0005f*fModelSize);
if( !m_bIsOrbitMode )
{
- if(nCode == KEY_A)vMoveBy -= vStrafe*(0.005f*fModelSize);
- if(nCode == KEY_D)vMoveBy += vStrafe*(0.005f*fModelSize);
+ if(nCode == KEY_A)vMoveBy -= vStrafe*(0.0005f*fModelSize);
+ if(nCode == KEY_D)vMoveBy += vStrafe*(0.0005f*fModelSize);
}
}
gltf_renderer_move_camera(&m_rHandle, vMoveBy.x, vMoveBy.y, vMoveBy.z, 0.0);
More information about the Libreoffice-commits
mailing list