mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
-Fix disable_3d flag
-Add extra flag optimize=[size,speed] to be able to prioritize size
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user