diff options
author | Ricardo Buring <ricardo.buring@gmail.com> | 2022-09-06 15:35:33 +0200 |
---|---|---|
committer | Ricardo Buring <ricardo.buring@gmail.com> | 2022-09-07 15:05:46 +0200 |
commit | 532e378cd9da5ab2121c6da8ac7d06ae7d5b6006 (patch) | |
tree | 073e9497b43233b4ebc35c9c8fc2203d214520d8 /tests | |
parent | 019253512d75eb5e012772921ace6c092d8f5380 (diff) |
Expose registration of physics servers to GDExtension
This exposes PhysicsServer2DManager and PhysicsServer3DManager.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_main.cpp b/tests/test_main.cpp index 7712189e45..4c861eacba 100644 --- a/tests/test_main.cpp +++ b/tests/test_main.cpp @@ -207,10 +207,10 @@ struct GodotTestCaseListener : public doctest::IReporter { RenderingServerDefault::get_singleton()->init(); RenderingServerDefault::get_singleton()->set_render_loop_enabled(false); - physics_server_3d = PhysicsServer3DManager::new_default_server(); + physics_server_3d = PhysicsServer3DManager::get_singleton()->new_default_server(); physics_server_3d->init(); - physics_server_2d = PhysicsServer2DManager::new_default_server(); + physics_server_2d = PhysicsServer2DManager::get_singleton()->new_default_server(); physics_server_2d->init(); navigation_server_3d = NavigationServer3DManager::new_default_server(); |