mirror of
https://github.com/godotengine/godot
synced 2024-09-06 03:03:33 +00:00
Include PhysicsMaterial when 3D is disabled
It's still needed by 2D physics.
This commit is contained in:
parent
4b6327fb30
commit
5743c7910a
|
@ -145,6 +145,7 @@
|
|||
#include "scene/resources/mesh_library.h"
|
||||
#include "scene/resources/packed_scene.h"
|
||||
#include "scene/resources/particles_material.h"
|
||||
#include "scene/resources/physics_material.h"
|
||||
#include "scene/resources/plane_shape.h"
|
||||
#include "scene/resources/polygon_path_finder.h"
|
||||
#include "scene/resources/primitive_meshes.h"
|
||||
|
@ -207,7 +208,6 @@
|
|||
#include "scene/3d/visibility_notifier.h"
|
||||
#include "scene/animation/skeleton_ik.h"
|
||||
#include "scene/resources/environment.h"
|
||||
#include "scene/resources/physics_material.h"
|
||||
#endif
|
||||
|
||||
static Ref<ResourceFormatSaverText> resource_saver_text;
|
||||
|
@ -602,8 +602,8 @@ void register_scene_types() {
|
|||
|
||||
ClassDB::register_class<SpatialVelocityTracker>();
|
||||
|
||||
ClassDB::register_class<PhysicsMaterial>();
|
||||
#endif
|
||||
ClassDB::register_class<PhysicsMaterial>();
|
||||
ClassDB::register_class<World>();
|
||||
ClassDB::register_class<Environment>();
|
||||
ClassDB::register_class<World2D>();
|
||||
|
|
Loading…
Reference in a new issue