[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11025] trunk/blender/source/gameengine/ Physics/Bullet/CcdPhysicsController.cpp: bugfix: adding static objects will 'replace' previously added static object in game engine.

Erwin Coumans blender at erwincoumans.com
Sat Jun 23 06:50:25 CEST 2007


Revision: 11025
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11025
Author:   erwin
Date:     2007-06-23 06:49:17 +0200 (Sat, 23 Jun 2007)

Log Message:
-----------
bugfix: adding static objects will 'replace' previously added static object in game engine. need to use new motion state.

Modified Paths:
--------------
    trunk/blender/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp

Modified: trunk/blender/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp
===================================================================
--- trunk/blender/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp	2007-06-22 17:20:49 UTC (rev 11024)
+++ trunk/blender/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp	2007-06-23 04:49:17 UTC (rev 11025)
@@ -104,12 +104,13 @@
 
 };
 
+
 void CcdPhysicsController::CreateRigidbody()
 {
 
-	btTransform trans = GetTransformFromMotionState(m_cci.m_MotionState);
+	btTransform trans = GetTransformFromMotionState(m_MotionState);
 
-	m_bulletMotionState = new BlenderBulletMotionState(m_cci.m_MotionState);
+	m_bulletMotionState = new BlenderBulletMotionState(m_MotionState);
 
 	m_body = new btRigidBody(m_cci.m_mass,
 		m_bulletMotionState,





More information about the Bf-blender-cvs mailing list