<commit_before>From fbe930b81458cecfd7b5ed69859fe3e2329d1e56 Mon Sep 17 00:00:00 2001
From: <NAME> <<EMAIL>>
Date: Mon, 23 Jan 2012 08:09:55 -0800
Subject: [PATCH] Call setWorldTransform when object is going inactive

---
 .../Dynamics/btDiscreteDynamicsWorld.cpp           |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/BulletDynamics/Dynamics/btDiscreteDynamicsWorld.cpp b/src/BulletDynamics/Dynamics/btDiscreteDynamicsWorld.cpp
index 94753d9..a5c9724 100755
--- a/src/BulletDynamics/Dynamics/btDiscreteDynamicsWorld.cpp
+++ b/src/BulletDynamics/Dynamics/btDiscreteDynamicsWorld.cpp
@@ -474,6 +474,9 @@ void	btDiscreteDynamicsWorld::updateActivationState(btScalar timeStep)
 					{
 						body->setAngularVelocity(btVector3(0,0,0));
 						body->setLinearVelocity(btVector3(0,0,0));
+						// when sleeping, force the motion state to be called/updated
+						if (body->getMotionState())
+							body->getMotionState()->setWorldTransform(body->getWorldTransform());
 					}
 
 				}
-- 
1.7.5.1
<commit_msg>BulletSim: update setWorldTransform on inactive patch for Bullet 2.80<commit_after>From 8957d854bee84942033647a09e13d7f3681f17aa Mon Sep 17 00:00:00 2001
From: <NAME> <<EMAIL>>
Date: Mon, 26 Mar 2012 11:05:02 -0700
Subject: [PATCH] Call setWorldTransform when object is going inactive

---
 .../Dynamics/btDiscreteDynamicsWorld.cpp           |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/BulletDynamics/Dynamics/btDiscreteDynamicsWorld.cpp b/src/BulletDynamics/Dynamics/btDiscreteDynamicsWorld.cpp
index 954ef24..2767899 100755
--- a/src/BulletDynamics/Dynamics/btDiscreteDynamicsWorld.cpp
+++ b/src/BulletDynamics/Dynamics/btDiscreteDynamicsWorld.cpp
@@ -640,6 +640,9 @@ void	btDiscreteDynamicsWorld::updateActivationState(btScalar timeStep)
 					{
 						body->setAngularVelocity(btVector3(0,0,0));
 						body->setLinearVelocity(btVector3(0,0,0));
+						// when sleeping, force the motion state to be called/updated
+						if (body->getMotionState())
+							body->getMotionState()->setWorldTransform(body->getWorldTransform());
 					}
 
 				}
-- 
1.7.9

{'fraction_non_alphanumeric': 0.12699156513589505, 'fraction_numerical': 0.09044048734770384, 'mean_word_length': 4.245700245700245, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4739544', 'n_tokens_mistral': 944, 'n_tokens_neox': 745, 'n_words': 136}