[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [Gluon] 292140f: A wrong initialization value of orientation caused
From:       Giulio Camuffo <giuliocamuffo () gmail ! com>
Date:       2011-01-06 16:13:23
Message-ID: 20110106161323.C1390A6090 () git ! kde ! org
[Download RAW message or body]

commit 292140f416942383ba467beb0436a934c13b1741
branch master
Author: Giulio Camuffo <giuliocamuffo@gmail.com>
Date:   Thu Jan 6 18:12:19 2011 +0100

    A wrong initialization value of orientation caused a 180 degrees rotation of the scene sometimes.

diff --git a/engine/gameobjectprivate.cpp b/engine/gameobjectprivate.cpp
index e122456..49823d5 100644
--- a/engine/gameobjectprivate.cpp
+++ b/engine/gameobjectprivate.cpp
@@ -27,7 +27,7 @@ GameObjectPrivate::GameObjectPrivate()
     : enabled( true )
     , position( QVector3D() )
     , scale( QVector3D( 1, 1, 1 ) )
-    , orientation( QQuaternion( 0, 0, 0, 1 ) )
+    , orientation( QQuaternion( 1, 0, 0, 0 ) )
     , transform( QMatrix4x4() )
     , transformInvalidated( true )
     , parentGameObject( 0 )
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic