1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-22 15:06:45 +00:00

Move Bullet physics query flush from Bullet space pre-tick callback to

Bullet physics flush_queries() as is done in Godot physics, and remove
the pre-tick callback.
This commit is contained in:
Marcel Admiraal
2020-07-07 17:12:34 +01:00
parent 2eb65b5c7e
commit e7d8464f87
2 changed files with 6 additions and 5 deletions

View File

@@ -1572,6 +1572,12 @@ void BulletPhysicsServer::sync() {
}
void BulletPhysicsServer::flush_queries() {
if (!active)
return;
for (int i = 0; i < active_spaces_count; ++i) {
active_spaces[i]->flush_queries();
}
}
void BulletPhysicsServer::finish() {