Disable all 3D nodes, physics, and resources when compiling without 3D

This commit is contained in:
Aaron Franke
2024-02-26 06:34:53 -06:00
parent 810f127022
commit 6aac3e4a16
16 changed files with 68 additions and 19 deletions

View File

@ -31,6 +31,8 @@
#ifndef PHYSICS_SERVER_3D_H
#define PHYSICS_SERVER_3D_H
#ifndef _3D_DISABLED
#include "core/io/resource.h"
#include "core/object/class_db.h"
#include "core/object/gdvirtual.gen.inc"
@ -1055,4 +1057,6 @@ VARIANT_ENUM_CAST(PhysicsServer3D::G6DOFJointAxisFlag);
VARIANT_ENUM_CAST(PhysicsServer3D::AreaBodyStatus);
VARIANT_ENUM_CAST(PhysicsServer3D::ProcessInfo);
#endif // _3D_DISABLED
#endif // PHYSICS_SERVER_3D_H