diff options
author | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-02-22 15:14:29 +0100 |
---|---|---|
committer | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-02-22 16:23:48 +0100 |
commit | f06222e487355749ca9d10f9a00342481ffd5c4c (patch) | |
tree | a03b342f14d8691e9845bb418268cc2bc4ac82ef /scene/main/scene_tree.cpp | |
parent | 9c626b623619d89ce3e02a8422a4de977e016d1b (diff) | |
download | redot-engine-f06222e487355749ca9d10f9a00342481ffd5c4c.tar.gz |
[Physics] Fix export with 3D disabled
Diffstat (limited to 'scene/main/scene_tree.cpp')
-rw-r--r-- | scene/main/scene_tree.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/main/scene_tree.cpp b/scene/main/scene_tree.cpp index 6b3b2d6260..a29311af43 100644 --- a/scene/main/scene_tree.cpp +++ b/scene/main/scene_tree.cpp @@ -60,7 +60,9 @@ #include "servers/display_server.h" #include "servers/navigation_server_3d.h" #include "servers/physics_server_2d.h" +#ifndef _3D_DISABLED #include "servers/physics_server_3d.h" +#endif // _3D_DISABLED #include "window.h" #include <stdio.h> #include <stdlib.h> @@ -884,7 +886,9 @@ void SceneTree::set_pause(bool p_enabled) { return; } paused = p_enabled; +#ifndef _3D_DISABLED PhysicsServer3D::get_singleton()->set_active(!p_enabled); +#endif // _3D_DISABLED PhysicsServer2D::get_singleton()->set_active(!p_enabled); if (get_root()) { get_root()->_propagate_pause_notification(p_enabled); |