Revision: 49237
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=49237
Author:   moguri
Date:     2012-07-26 09:35:52 +0000 (Thu, 26 Jul 2012)
Log Message:
-----------
Fix for [#32185] "Incorrect physics for LibLoaded dupligroups" reported by 
Daniel Stokes (Kupoman). I'm not sure if this is the "correct" fix, but it at 
least allows all physics objects to be evaluated at least once by the new 
environment. This allows the new environment to sync up physics shapes for 
static objects.

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     
2012-07-26 09:29:37 UTC (rev 49236)
+++ trunk/blender/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp     
2012-07-26 09:35:52 UTC (rev 49237)
@@ -836,6 +836,11 @@
                if (m_cci.m_physicsEnv->removeCcdPhysicsController(this))
                {
                        physicsEnv->addCcdPhysicsController(this);
+
+                       // Set the object to be active so it can at least by 
evaluated once.
+                       // This fixes issues with static objects not having 
their physics meshes
+                       // in the right spot when lib loading.
+                       
this->GetCollisionObject()->setActivationState(ACTIVE_TAG);
                }
                m_cci.m_physicsEnv = physicsEnv;
        }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to