summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
Diffstat (limited to 'editor')
-rw-r--r--editor/editor.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/editor.cpp b/editor/editor.cpp
index af45fda..024e855 100644
--- a/editor/editor.cpp
+++ b/editor/editor.cpp
@@ -418,8 +418,11 @@ void PkeEditor_Tick(double delta) {
double axis4 = -(rotCCCount * delta) + (rotCCount * delta);
if (axis4 != 0.0) {
glm::quat gRot;
+ btQuaternion bRot;
BulletToGlm(trfm.getRotation(), gRot);
gRot = glm::quat(glm::vec3(0.f, 0.f, axis4)) * gRot;
+ GlmToBullet(gRot, bRot);
+ trfm.setRotation(bRot);
NullCamera.stale = NullCamera.stale | PKE_CAMERA_STALE_ROT;
}