BGE Animations: Fixing issues with initialization order in BL_ShapeDeformer
authorMitchell Stokes <mogurijin@gmail.com>
Tue, 9 Aug 2011 03:27:05 +0000 (03:27 +0000)
committerMitchell Stokes <mogurijin@gmail.com>
Tue, 9 Aug 2011 03:27:05 +0000 (03:27 +0000)
source/gameengine/Converter/BL_ShapeDeformer.cpp

index 82c73529a9413ebff22b3075a5a02eaf2d98a39e..befe0f6e78475fcbe817c9f97830ccd277769806 100644 (file)
@@ -73,8 +73,8 @@ BL_ShapeDeformer::BL_ShapeDeformer(BL_DeformableGameObject *gameobj,
                     RAS_MeshObject *mesh)
                                :       
                                        BL_SkinDeformer(gameobj,bmeshobj, mesh),
-                                       m_lastShapeUpdate(-1),
-                                       m_useShapeDrivers(false)
+                                       m_useShapeDrivers(false),
+                                       m_lastShapeUpdate(-1)
 {
        m_key = m_bmesh->key;
        m_bmesh->key = copy_key(m_key);
@@ -90,8 +90,8 @@ BL_ShapeDeformer::BL_ShapeDeformer(BL_DeformableGameObject *gameobj,
                                BL_ArmatureObject* arma)
                                :
                                        BL_SkinDeformer(gameobj, bmeshobj_old, bmeshobj_new, mesh, release_object, recalc_normal, arma),
-                                       m_lastShapeUpdate(-1),
-                                       m_useShapeDrivers(false)
+                                       m_useShapeDrivers(false),
+                                       m_lastShapeUpdate(-1)
 {
        m_key = m_bmesh->key;
        m_bmesh->key = copy_key(m_key);