summaryrefslogtreecommitdiff
path: root/servers/physics
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-07-21 17:26:14 -0300
committerJuan Linietsky <reduzio@gmail.com>2018-07-21 17:26:49 -0300
commit2b9902db06d922fc98ae49c0d1e31123feed469a (patch)
tree40cf433aedb97526053dbdeb192250ceedbe903e /servers/physics
parentcfcb6e11f25adb13177ba08777263288a5ec6f61 (diff)
-Fix disable_3d flag
-Add extra flag optimize=[size,speed] to be able to prioritize size
Diffstat (limited to 'servers/physics')
-rw-r--r--servers/physics/physics_server_sw.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/servers/physics/physics_server_sw.cpp b/servers/physics/physics_server_sw.cpp
index 6c25ad43f9..593218dd5d 100644
--- a/servers/physics/physics_server_sw.cpp
+++ b/servers/physics/physics_server_sw.cpp
@@ -1367,6 +1367,8 @@ void PhysicsServerSW::init() {
void PhysicsServerSW::step(real_t p_step) {
+#ifndef _3D_DISABLED
+
if (!active)
return;
@@ -1387,6 +1389,7 @@ void PhysicsServerSW::step(real_t p_step) {
active_objects += E->get()->get_active_objects();
collision_pairs += E->get()->get_collision_pairs();
}
+#endif
}
void PhysicsServerSW::sync(){
@@ -1395,6 +1398,8 @@ void PhysicsServerSW::sync(){
void PhysicsServerSW::flush_queries() {
+#ifndef _3D_DISABLED
+
if (!active)
return;
@@ -1441,6 +1446,7 @@ void PhysicsServerSW::flush_queries() {
ScriptDebugger::get_singleton()->add_profiling_frame_data("physics", values);
}
+#endif
};
void PhysicsServerSW::finish() {