|
@@ -134,7 +134,6 @@
|
|
|
#include "scene/resources/navigation_mesh.h"
|
|
|
#include "scene/resources/packed_scene.h"
|
|
|
#include "scene/resources/particle_process_material.h"
|
|
|
-#include "scene/resources/physics_material.h"
|
|
|
#include "scene/resources/placeholder_textures.h"
|
|
|
#include "scene/resources/portable_compressed_texture.h"
|
|
|
#include "scene/resources/resource_format_text.h"
|
|
@@ -157,7 +156,6 @@
|
|
|
#include "scene/resources/visual_shader_nodes.h"
|
|
|
#include "scene/resources/visual_shader_particle_nodes.h"
|
|
|
#include "scene/resources/visual_shader_sdf_nodes.h"
|
|
|
-#include "scene/resources/world_2d.h"
|
|
|
#include "scene/theme/theme_db.h"
|
|
|
|
|
|
// 2D
|
|
@@ -184,51 +182,25 @@
|
|
|
#include "scene/2d/parallax_background.h"
|
|
|
#include "scene/2d/parallax_layer.h"
|
|
|
#include "scene/2d/path_2d.h"
|
|
|
-#include "scene/2d/physics/animatable_body_2d.h"
|
|
|
-#include "scene/2d/physics/area_2d.h"
|
|
|
-#include "scene/2d/physics/character_body_2d.h"
|
|
|
-#include "scene/2d/physics/collision_polygon_2d.h"
|
|
|
-#include "scene/2d/physics/collision_shape_2d.h"
|
|
|
-#include "scene/2d/physics/joints/damped_spring_joint_2d.h"
|
|
|
-#include "scene/2d/physics/joints/groove_joint_2d.h"
|
|
|
-#include "scene/2d/physics/joints/joint_2d.h"
|
|
|
-#include "scene/2d/physics/joints/pin_joint_2d.h"
|
|
|
-#include "scene/2d/physics/kinematic_collision_2d.h"
|
|
|
-#include "scene/2d/physics/physical_bone_2d.h"
|
|
|
-#include "scene/2d/physics/physics_body_2d.h"
|
|
|
-#include "scene/2d/physics/ray_cast_2d.h"
|
|
|
-#include "scene/2d/physics/rigid_body_2d.h"
|
|
|
-#include "scene/2d/physics/shape_cast_2d.h"
|
|
|
-#include "scene/2d/physics/static_body_2d.h"
|
|
|
#include "scene/2d/polygon_2d.h"
|
|
|
#include "scene/2d/remote_transform_2d.h"
|
|
|
#include "scene/2d/skeleton_2d.h"
|
|
|
#include "scene/2d/sprite_2d.h"
|
|
|
#include "scene/2d/tile_map.h"
|
|
|
#include "scene/2d/tile_map_layer.h"
|
|
|
-#include "scene/2d/touch_screen_button.h"
|
|
|
#include "scene/2d/visible_on_screen_notifier_2d.h"
|
|
|
-#include "scene/resources/2d/capsule_shape_2d.h"
|
|
|
-#include "scene/resources/2d/circle_shape_2d.h"
|
|
|
-#include "scene/resources/2d/concave_polygon_shape_2d.h"
|
|
|
-#include "scene/resources/2d/convex_polygon_shape_2d.h"
|
|
|
#include "scene/resources/2d/navigation_mesh_source_geometry_data_2d.h"
|
|
|
#include "scene/resources/2d/navigation_polygon.h"
|
|
|
#include "scene/resources/2d/polygon_path_finder.h"
|
|
|
-#include "scene/resources/2d/rectangle_shape_2d.h"
|
|
|
-#include "scene/resources/2d/segment_shape_2d.h"
|
|
|
-#include "scene/resources/2d/separation_ray_shape_2d.h"
|
|
|
#include "scene/resources/2d/skeleton/skeleton_modification_2d.h"
|
|
|
#include "scene/resources/2d/skeleton/skeleton_modification_2d_ccdik.h"
|
|
|
#include "scene/resources/2d/skeleton/skeleton_modification_2d_fabrik.h"
|
|
|
-#include "scene/resources/2d/skeleton/skeleton_modification_2d_jiggle.h"
|
|
|
#include "scene/resources/2d/skeleton/skeleton_modification_2d_lookat.h"
|
|
|
-#include "scene/resources/2d/skeleton/skeleton_modification_2d_physicalbones.h"
|
|
|
#include "scene/resources/2d/skeleton/skeleton_modification_2d_stackholder.h"
|
|
|
#include "scene/resources/2d/skeleton/skeleton_modification_2d_twoboneik.h"
|
|
|
#include "scene/resources/2d/skeleton/skeleton_modification_stack_2d.h"
|
|
|
#include "scene/resources/2d/tile_set.h"
|
|
|
-#include "scene/resources/2d/world_boundary_shape_2d.h"
|
|
|
+#include "scene/resources/world_2d.h"
|
|
|
|
|
|
#ifndef _3D_DISABLED
|
|
|
#include "scene/3d/audio_listener_3d.h"
|
|
@@ -256,7 +228,68 @@
|
|
|
#include "scene/3d/node_3d.h"
|
|
|
#include "scene/3d/occluder_instance_3d.h"
|
|
|
#include "scene/3d/path_3d.h"
|
|
|
-#include "scene/3d/physical_bone_simulator_3d.h"
|
|
|
+#include "scene/3d/reflection_probe.h"
|
|
|
+#include "scene/3d/remote_transform_3d.h"
|
|
|
+#include "scene/3d/retarget_modifier_3d.h"
|
|
|
+#include "scene/3d/skeleton_3d.h"
|
|
|
+#include "scene/3d/skeleton_ik_3d.h"
|
|
|
+#include "scene/3d/skeleton_modifier_3d.h"
|
|
|
+#include "scene/3d/sprite_3d.h"
|
|
|
+#include "scene/3d/visible_on_screen_notifier_3d.h"
|
|
|
+#include "scene/3d/voxel_gi.h"
|
|
|
+#include "scene/3d/world_environment.h"
|
|
|
+#ifndef XR_DISABLED
|
|
|
+#include "scene/3d/xr/xr_body_modifier_3d.h"
|
|
|
+#include "scene/3d/xr/xr_face_modifier_3d.h"
|
|
|
+#include "scene/3d/xr/xr_hand_modifier_3d.h"
|
|
|
+#include "scene/3d/xr/xr_nodes.h"
|
|
|
+#endif // XR_DISABLED
|
|
|
+#include "scene/animation/root_motion_view.h"
|
|
|
+#include "scene/resources/3d/fog_material.h"
|
|
|
+#include "scene/resources/3d/importer_mesh.h"
|
|
|
+#include "scene/resources/3d/mesh_library.h"
|
|
|
+#include "scene/resources/3d/navigation_mesh_source_geometry_data_3d.h"
|
|
|
+#include "scene/resources/3d/primitive_meshes.h"
|
|
|
+#include "scene/resources/3d/sky_material.h"
|
|
|
+#include "scene/resources/3d/world_3d.h"
|
|
|
+#endif // _3D_DISABLED
|
|
|
+
|
|
|
+#if !defined(PHYSICS_2D_DISABLED) || !defined(PHYSICS_3D_DISABLED)
|
|
|
+#include "scene/resources/physics_material.h"
|
|
|
+#endif // !defined(PHYSICS_2D_DISABLED) || !defined(PHYSICS_3D_DISABLED)
|
|
|
+
|
|
|
+#ifndef PHYSICS_2D_DISABLED
|
|
|
+#include "scene/2d/physics/animatable_body_2d.h"
|
|
|
+#include "scene/2d/physics/area_2d.h"
|
|
|
+#include "scene/2d/physics/character_body_2d.h"
|
|
|
+#include "scene/2d/physics/collision_polygon_2d.h"
|
|
|
+#include "scene/2d/physics/collision_shape_2d.h"
|
|
|
+#include "scene/2d/physics/joints/damped_spring_joint_2d.h"
|
|
|
+#include "scene/2d/physics/joints/groove_joint_2d.h"
|
|
|
+#include "scene/2d/physics/joints/joint_2d.h"
|
|
|
+#include "scene/2d/physics/joints/pin_joint_2d.h"
|
|
|
+#include "scene/2d/physics/kinematic_collision_2d.h"
|
|
|
+#include "scene/2d/physics/physical_bone_2d.h"
|
|
|
+#include "scene/2d/physics/physics_body_2d.h"
|
|
|
+#include "scene/2d/physics/ray_cast_2d.h"
|
|
|
+#include "scene/2d/physics/rigid_body_2d.h"
|
|
|
+#include "scene/2d/physics/shape_cast_2d.h"
|
|
|
+#include "scene/2d/physics/static_body_2d.h"
|
|
|
+#include "scene/2d/physics/touch_screen_button.h"
|
|
|
+#include "scene/resources/2d/capsule_shape_2d.h"
|
|
|
+#include "scene/resources/2d/circle_shape_2d.h"
|
|
|
+#include "scene/resources/2d/concave_polygon_shape_2d.h"
|
|
|
+#include "scene/resources/2d/convex_polygon_shape_2d.h"
|
|
|
+#include "scene/resources/2d/rectangle_shape_2d.h"
|
|
|
+#include "scene/resources/2d/segment_shape_2d.h"
|
|
|
+#include "scene/resources/2d/separation_ray_shape_2d.h"
|
|
|
+#include "scene/resources/2d/shape_2d.h"
|
|
|
+#include "scene/resources/2d/skeleton/skeleton_modification_2d_jiggle.h"
|
|
|
+#include "scene/resources/2d/skeleton/skeleton_modification_2d_physicalbones.h"
|
|
|
+#include "scene/resources/2d/world_boundary_shape_2d.h"
|
|
|
+#endif // PHYSICS_2D_DISABLED
|
|
|
+
|
|
|
+#ifndef PHYSICS_3D_DISABLED
|
|
|
#include "scene/3d/physics/animatable_body_3d.h"
|
|
|
#include "scene/3d/physics/area_3d.h"
|
|
|
#include "scene/3d/physics/character_body_3d.h"
|
|
@@ -270,53 +303,30 @@
|
|
|
#include "scene/3d/physics/joints/slider_joint_3d.h"
|
|
|
#include "scene/3d/physics/kinematic_collision_3d.h"
|
|
|
#include "scene/3d/physics/physical_bone_3d.h"
|
|
|
+#include "scene/3d/physics/physical_bone_simulator_3d.h"
|
|
|
#include "scene/3d/physics/physics_body_3d.h"
|
|
|
#include "scene/3d/physics/ray_cast_3d.h"
|
|
|
#include "scene/3d/physics/rigid_body_3d.h"
|
|
|
#include "scene/3d/physics/shape_cast_3d.h"
|
|
|
+#include "scene/3d/physics/soft_body_3d.h"
|
|
|
#include "scene/3d/physics/spring_arm_3d.h"
|
|
|
#include "scene/3d/physics/static_body_3d.h"
|
|
|
#include "scene/3d/physics/vehicle_body_3d.h"
|
|
|
-#include "scene/3d/reflection_probe.h"
|
|
|
-#include "scene/3d/remote_transform_3d.h"
|
|
|
-#include "scene/3d/retarget_modifier_3d.h"
|
|
|
-#include "scene/3d/skeleton_3d.h"
|
|
|
-#include "scene/3d/skeleton_ik_3d.h"
|
|
|
-#include "scene/3d/skeleton_modifier_3d.h"
|
|
|
-#include "scene/3d/soft_body_3d.h"
|
|
|
#include "scene/3d/spring_bone_collision_3d.h"
|
|
|
#include "scene/3d/spring_bone_collision_capsule_3d.h"
|
|
|
#include "scene/3d/spring_bone_collision_plane_3d.h"
|
|
|
#include "scene/3d/spring_bone_collision_sphere_3d.h"
|
|
|
#include "scene/3d/spring_bone_simulator_3d.h"
|
|
|
-#include "scene/3d/sprite_3d.h"
|
|
|
-#include "scene/3d/visible_on_screen_notifier_3d.h"
|
|
|
-#include "scene/3d/voxel_gi.h"
|
|
|
-#include "scene/3d/world_environment.h"
|
|
|
-#ifndef XR_DISABLED
|
|
|
-#include "scene/3d/xr/xr_body_modifier_3d.h"
|
|
|
-#include "scene/3d/xr/xr_face_modifier_3d.h"
|
|
|
-#include "scene/3d/xr/xr_hand_modifier_3d.h"
|
|
|
-#include "scene/3d/xr/xr_nodes.h"
|
|
|
-#endif // XR_DISABLED
|
|
|
-#include "scene/animation/root_motion_view.h"
|
|
|
#include "scene/resources/3d/box_shape_3d.h"
|
|
|
#include "scene/resources/3d/capsule_shape_3d.h"
|
|
|
#include "scene/resources/3d/concave_polygon_shape_3d.h"
|
|
|
#include "scene/resources/3d/convex_polygon_shape_3d.h"
|
|
|
#include "scene/resources/3d/cylinder_shape_3d.h"
|
|
|
-#include "scene/resources/3d/fog_material.h"
|
|
|
#include "scene/resources/3d/height_map_shape_3d.h"
|
|
|
-#include "scene/resources/3d/importer_mesh.h"
|
|
|
-#include "scene/resources/3d/mesh_library.h"
|
|
|
-#include "scene/resources/3d/navigation_mesh_source_geometry_data_3d.h"
|
|
|
-#include "scene/resources/3d/primitive_meshes.h"
|
|
|
#include "scene/resources/3d/separation_ray_shape_3d.h"
|
|
|
-#include "scene/resources/3d/sky_material.h"
|
|
|
#include "scene/resources/3d/sphere_shape_3d.h"
|
|
|
-#include "scene/resources/3d/world_3d.h"
|
|
|
#include "scene/resources/3d/world_boundary_shape_3d.h"
|
|
|
-#endif // _3D_DISABLED
|
|
|
+#endif // PHYSICS_3D_DISABLED
|
|
|
|
|
|
static Ref<ResourceFormatSaverText> resource_saver_text;
|
|
|
static Ref<ResourceFormatLoaderText> resource_loader_text;
|
|
@@ -616,14 +626,16 @@ void register_scene_types() {
|
|
|
GDREGISTER_CLASS(RootMotionView);
|
|
|
GDREGISTER_VIRTUAL_CLASS(SkeletonModifier3D);
|
|
|
GDREGISTER_CLASS(RetargetModifier3D);
|
|
|
+
|
|
|
+ OS::get_singleton()->yield(); // may take time to init
|
|
|
+
|
|
|
+#ifndef PHYSICS_3D_DISABLED
|
|
|
GDREGISTER_CLASS(SpringBoneSimulator3D);
|
|
|
GDREGISTER_VIRTUAL_CLASS(SpringBoneCollision3D);
|
|
|
GDREGISTER_CLASS(SpringBoneCollisionSphere3D);
|
|
|
GDREGISTER_CLASS(SpringBoneCollisionCapsule3D);
|
|
|
GDREGISTER_CLASS(SpringBoneCollisionPlane3D);
|
|
|
|
|
|
- OS::get_singleton()->yield(); // may take time to init
|
|
|
-
|
|
|
GDREGISTER_ABSTRACT_CLASS(CollisionObject3D);
|
|
|
GDREGISTER_ABSTRACT_CLASS(PhysicsBody3D);
|
|
|
GDREGISTER_CLASS(StaticBody3D);
|
|
@@ -636,11 +648,13 @@ void register_scene_types() {
|
|
|
GDREGISTER_CLASS(PhysicalBoneSimulator3D);
|
|
|
GDREGISTER_CLASS(PhysicalBone3D);
|
|
|
GDREGISTER_CLASS(SoftBody3D);
|
|
|
+#endif // PHYSICS_3D_DISABLED
|
|
|
|
|
|
GDREGISTER_CLASS(SkeletonIK3D);
|
|
|
GDREGISTER_CLASS(BoneAttachment3D);
|
|
|
GDREGISTER_CLASS(LookAtModifier3D);
|
|
|
|
|
|
+#ifndef PHYSICS_3D_DISABLED
|
|
|
GDREGISTER_CLASS(VehicleBody3D);
|
|
|
GDREGISTER_CLASS(VehicleWheel3D);
|
|
|
GDREGISTER_CLASS(Area3D);
|
|
@@ -648,6 +662,7 @@ void register_scene_types() {
|
|
|
GDREGISTER_CLASS(CollisionPolygon3D);
|
|
|
GDREGISTER_CLASS(RayCast3D);
|
|
|
GDREGISTER_CLASS(ShapeCast3D);
|
|
|
+#endif // PHYSICS_3D_DISABLED
|
|
|
GDREGISTER_CLASS(MultiMeshInstance3D);
|
|
|
|
|
|
GDREGISTER_CLASS(Curve3D);
|
|
@@ -660,12 +675,14 @@ void register_scene_types() {
|
|
|
GDREGISTER_CLASS(FogMaterial);
|
|
|
GDREGISTER_CLASS(RemoteTransform3D);
|
|
|
|
|
|
+#ifndef PHYSICS_3D_DISABLED
|
|
|
GDREGISTER_ABSTRACT_CLASS(Joint3D);
|
|
|
GDREGISTER_CLASS(PinJoint3D);
|
|
|
GDREGISTER_CLASS(HingeJoint3D);
|
|
|
GDREGISTER_CLASS(SliderJoint3D);
|
|
|
GDREGISTER_CLASS(ConeTwistJoint3D);
|
|
|
GDREGISTER_CLASS(Generic6DOFJoint3D);
|
|
|
+#endif // PHYSICS_3D_DISABLED
|
|
|
|
|
|
GDREGISTER_CLASS(NavigationRegion3D);
|
|
|
GDREGISTER_CLASS(NavigationAgent3D);
|
|
@@ -818,6 +835,7 @@ void register_scene_types() {
|
|
|
GDREGISTER_CLASS(Line2D);
|
|
|
GDREGISTER_CLASS(MeshInstance2D);
|
|
|
GDREGISTER_CLASS(MultiMeshInstance2D);
|
|
|
+#ifndef PHYSICS_2D_DISABLED
|
|
|
GDREGISTER_ABSTRACT_CLASS(CollisionObject2D);
|
|
|
GDREGISTER_ABSTRACT_CLASS(PhysicsBody2D);
|
|
|
GDREGISTER_CLASS(StaticBody2D);
|
|
@@ -830,6 +848,7 @@ void register_scene_types() {
|
|
|
GDREGISTER_CLASS(CollisionPolygon2D);
|
|
|
GDREGISTER_CLASS(RayCast2D);
|
|
|
GDREGISTER_CLASS(ShapeCast2D);
|
|
|
+#endif // PHYSICS_2D_DISABLED
|
|
|
GDREGISTER_CLASS(VisibleOnScreenNotifier2D);
|
|
|
GDREGISTER_CLASS(VisibleOnScreenEnabler2D);
|
|
|
GDREGISTER_CLASS(Polygon2D);
|
|
@@ -846,10 +865,13 @@ void register_scene_types() {
|
|
|
|
|
|
GDREGISTER_CLASS(Camera2D);
|
|
|
GDREGISTER_CLASS(AudioListener2D);
|
|
|
+#ifndef PHYSICS_2D_DISABLED
|
|
|
GDREGISTER_ABSTRACT_CLASS(Joint2D);
|
|
|
GDREGISTER_CLASS(PinJoint2D);
|
|
|
GDREGISTER_CLASS(GrooveJoint2D);
|
|
|
GDREGISTER_CLASS(DampedSpringJoint2D);
|
|
|
+ GDREGISTER_CLASS(TouchScreenButton);
|
|
|
+#endif // PHYSICS_2D_DISABLED
|
|
|
GDREGISTER_CLASS(TileSet);
|
|
|
GDREGISTER_ABSTRACT_CLASS(TileSetSource);
|
|
|
GDREGISTER_CLASS(TileSetAtlasSource);
|
|
@@ -861,7 +883,6 @@ void register_scene_types() {
|
|
|
GDREGISTER_CLASS(Parallax2D);
|
|
|
GDREGISTER_CLASS(ParallaxBackground);
|
|
|
GDREGISTER_CLASS(ParallaxLayer);
|
|
|
- GDREGISTER_CLASS(TouchScreenButton);
|
|
|
GDREGISTER_CLASS(RemoteTransform2D);
|
|
|
|
|
|
GDREGISTER_CLASS(SkeletonModificationStack2D);
|
|
@@ -869,12 +890,14 @@ void register_scene_types() {
|
|
|
GDREGISTER_CLASS(SkeletonModification2DLookAt);
|
|
|
GDREGISTER_CLASS(SkeletonModification2DCCDIK);
|
|
|
GDREGISTER_CLASS(SkeletonModification2DFABRIK);
|
|
|
- GDREGISTER_CLASS(SkeletonModification2DJiggle);
|
|
|
GDREGISTER_CLASS(SkeletonModification2DTwoBoneIK);
|
|
|
GDREGISTER_CLASS(SkeletonModification2DStackHolder);
|
|
|
|
|
|
+#ifndef PHYSICS_2D_DISABLED
|
|
|
GDREGISTER_CLASS(PhysicalBone2D);
|
|
|
+ GDREGISTER_CLASS(SkeletonModification2DJiggle);
|
|
|
GDREGISTER_CLASS(SkeletonModification2DPhysicalBones);
|
|
|
+#endif // PHYSICS_2D_DISABLED
|
|
|
|
|
|
OS::get_singleton()->yield(); // may take time to init
|
|
|
|
|
@@ -923,6 +946,7 @@ void register_scene_types() {
|
|
|
|
|
|
OS::get_singleton()->yield(); // may take time to init
|
|
|
|
|
|
+#ifndef PHYSICS_3D_DISABLED
|
|
|
GDREGISTER_ABSTRACT_CLASS(Shape3D);
|
|
|
GDREGISTER_CLASS(SeparationRayShape3D);
|
|
|
GDREGISTER_CLASS(SphereShape3D);
|
|
@@ -933,12 +957,15 @@ void register_scene_types() {
|
|
|
GDREGISTER_CLASS(WorldBoundaryShape3D);
|
|
|
GDREGISTER_CLASS(ConvexPolygonShape3D);
|
|
|
GDREGISTER_CLASS(ConcavePolygonShape3D);
|
|
|
+#endif // PHYSICS_3D_DISABLED
|
|
|
GDREGISTER_CLASS(World3D);
|
|
|
|
|
|
OS::get_singleton()->yield(); // may take time to init
|
|
|
#endif // _3D_DISABLED
|
|
|
|
|
|
+#if !defined(PHYSICS_2D_DISABLED) || !defined(PHYSICS_3D_DISABLED)
|
|
|
GDREGISTER_CLASS(PhysicsMaterial);
|
|
|
+#endif // !defined(PHYSICS_2D_DISABLED) || !defined(PHYSICS_3D_DISABLED)
|
|
|
GDREGISTER_CLASS(Compositor);
|
|
|
GDREGISTER_CLASS(Environment);
|
|
|
GDREGISTER_VIRTUAL_CLASS(CameraAttributes);
|
|
@@ -1027,6 +1054,7 @@ void register_scene_types() {
|
|
|
OS::get_singleton()->yield(); // may take time to init
|
|
|
|
|
|
GDREGISTER_CLASS(AudioStreamPlayer2D);
|
|
|
+#ifndef PHYSICS_2D_DISABLED
|
|
|
GDREGISTER_ABSTRACT_CLASS(Shape2D);
|
|
|
GDREGISTER_CLASS(WorldBoundaryShape2D);
|
|
|
GDREGISTER_CLASS(SegmentShape2D);
|
|
@@ -1036,6 +1064,7 @@ void register_scene_types() {
|
|
|
GDREGISTER_CLASS(CapsuleShape2D);
|
|
|
GDREGISTER_CLASS(ConvexPolygonShape2D);
|
|
|
GDREGISTER_CLASS(ConcavePolygonShape2D);
|
|
|
+#endif // PHYSICS_2D_DISABLED
|
|
|
GDREGISTER_CLASS(Curve2D);
|
|
|
GDREGISTER_CLASS(Path2D);
|
|
|
GDREGISTER_CLASS(PathFollow2D);
|
|
@@ -1058,14 +1087,18 @@ void register_scene_types() {
|
|
|
Polygon2D::navmesh_parse_init();
|
|
|
TileMap::navmesh_parse_init();
|
|
|
TileMapLayer::navmesh_parse_init();
|
|
|
+#ifndef PHYSICS_2D_DISABLED
|
|
|
StaticBody2D::navmesh_parse_init();
|
|
|
+#endif // PHYSICS_2D_DISABLED
|
|
|
#ifndef _3D_DISABLED
|
|
|
// 3D nodes that support navmesh baking need to server register their source geometry parsers.
|
|
|
MeshInstance3D::navmesh_parse_init();
|
|
|
MultiMeshInstance3D::navmesh_parse_init();
|
|
|
NavigationObstacle3D::navmesh_parse_init();
|
|
|
+#ifndef PHYSICS_3D_DISABLED
|
|
|
StaticBody3D::navmesh_parse_init();
|
|
|
-#endif
|
|
|
+#endif // PHYSICS_3D_DISABLED
|
|
|
+#endif // _3D_DISABLED
|
|
|
|
|
|
OS::get_singleton()->yield(); // may take time to init
|
|
|
|
|
@@ -1101,7 +1134,6 @@ void register_scene_types() {
|
|
|
// Renamed in 4.0.
|
|
|
// Keep alphabetical ordering to easily locate classes and avoid duplicates.
|
|
|
ClassDB::add_compatibility_class("AnimatedSprite", "AnimatedSprite2D");
|
|
|
- ClassDB::add_compatibility_class("Area", "Area3D");
|
|
|
ClassDB::add_compatibility_class("ARVRCamera", "XRCamera3D");
|
|
|
ClassDB::add_compatibility_class("ARVRController", "XRController3D");
|
|
|
ClassDB::add_compatibility_class("ARVRAnchor", "XRAnchor3D");
|
|
@@ -1111,17 +1143,8 @@ void register_scene_types() {
|
|
|
ClassDB::add_compatibility_class("ARVRServer", "XRServer");
|
|
|
ClassDB::add_compatibility_class("AStar", "AStar3D");
|
|
|
ClassDB::add_compatibility_class("BoneAttachment", "BoneAttachment3D");
|
|
|
- ClassDB::add_compatibility_class("BoxShape", "BoxShape3D");
|
|
|
ClassDB::add_compatibility_class("Camera", "Camera3D");
|
|
|
- ClassDB::add_compatibility_class("CapsuleShape", "CapsuleShape3D");
|
|
|
ClassDB::add_compatibility_class("ClippedCamera", "ClippedCamera3D");
|
|
|
- ClassDB::add_compatibility_class("CollisionObject", "CollisionObject3D");
|
|
|
- ClassDB::add_compatibility_class("CollisionPolygon", "CollisionPolygon3D");
|
|
|
- ClassDB::add_compatibility_class("CollisionShape", "CollisionShape3D");
|
|
|
- ClassDB::add_compatibility_class("ConcavePolygonShape", "ConcavePolygonShape3D");
|
|
|
- ClassDB::add_compatibility_class("ConeTwistJoint", "ConeTwistJoint3D");
|
|
|
- ClassDB::add_compatibility_class("ConvexPolygonShape", "ConvexPolygonShape3D");
|
|
|
- ClassDB::add_compatibility_class("CPUParticles", "CPUParticles3D");
|
|
|
ClassDB::add_compatibility_class("CSGBox", "CSGBox3D");
|
|
|
ClassDB::add_compatibility_class("CSGCombiner", "CSGCombiner3D");
|
|
|
ClassDB::add_compatibility_class("CSGCylinder", "CSGCylinder3D");
|
|
@@ -1132,20 +1155,9 @@ void register_scene_types() {
|
|
|
ClassDB::add_compatibility_class("CSGSphere", "CSGSphere3D");
|
|
|
ClassDB::add_compatibility_class("CSGTorus", "CSGTorus3D");
|
|
|
ClassDB::add_compatibility_class("CubeMesh", "BoxMesh");
|
|
|
- ClassDB::add_compatibility_class("CylinderShape", "CylinderShape3D");
|
|
|
- ClassDB::add_compatibility_class("DirectionalLight", "DirectionalLight3D");
|
|
|
- ClassDB::add_compatibility_class("EditorSpatialGizmo", "EditorNode3DGizmo");
|
|
|
- ClassDB::add_compatibility_class("EditorSpatialGizmoPlugin", "EditorNode3DGizmoPlugin");
|
|
|
- ClassDB::add_compatibility_class("Generic6DOFJoint", "Generic6DOFJoint3D");
|
|
|
ClassDB::add_compatibility_class("GIProbe", "VoxelGI");
|
|
|
ClassDB::add_compatibility_class("GIProbeData", "VoxelGIData");
|
|
|
ClassDB::add_compatibility_class("GradientTexture", "GradientTexture1D");
|
|
|
- ClassDB::add_compatibility_class("HeightMapShape", "HeightMapShape3D");
|
|
|
- ClassDB::add_compatibility_class("HingeJoint", "HingeJoint3D");
|
|
|
- ClassDB::add_compatibility_class("Joint", "Joint3D");
|
|
|
- ClassDB::add_compatibility_class("KinematicBody", "CharacterBody3D");
|
|
|
- ClassDB::add_compatibility_class("KinematicBody2D", "CharacterBody2D");
|
|
|
- ClassDB::add_compatibility_class("KinematicCollision", "KinematicCollision3D");
|
|
|
ClassDB::add_compatibility_class("Light", "Light3D");
|
|
|
ClassDB::add_compatibility_class("Light2D", "PointLight2D");
|
|
|
ClassDB::add_compatibility_class("LineShape2D", "WorldBoundaryShape2D");
|
|
@@ -1166,57 +1178,82 @@ void register_scene_types() {
|
|
|
ClassDB::add_compatibility_class("ParticlesMaterial", "ParticleProcessMaterial");
|
|
|
ClassDB::add_compatibility_class("Path", "Path3D");
|
|
|
ClassDB::add_compatibility_class("PathFollow", "PathFollow3D");
|
|
|
- ClassDB::add_compatibility_class("PhysicalBone", "PhysicalBone3D");
|
|
|
+ ClassDB::add_compatibility_class("Position2D", "Marker2D");
|
|
|
+ ClassDB::add_compatibility_class("Position3D", "Marker3D");
|
|
|
+ ClassDB::add_compatibility_class("ProceduralSky", "Sky");
|
|
|
+ ClassDB::add_compatibility_class("RemoteTransform", "RemoteTransform3D");
|
|
|
+ ClassDB::add_compatibility_class("ShortCut", "Shortcut");
|
|
|
+ ClassDB::add_compatibility_class("Skeleton", "Skeleton3D");
|
|
|
+ ClassDB::add_compatibility_class("SkeletonIK", "SkeletonIK3D");
|
|
|
+ ClassDB::add_compatibility_class("Spatial", "Node3D");
|
|
|
+ ClassDB::add_compatibility_class("SpatialGizmo", "Node3DGizmo");
|
|
|
+ ClassDB::add_compatibility_class("SpatialMaterial", "StandardMaterial3D");
|
|
|
+ ClassDB::add_compatibility_class("SpotLight", "SpotLight3D");
|
|
|
+ ClassDB::add_compatibility_class("Sprite", "Sprite2D");
|
|
|
+ ClassDB::add_compatibility_class("StaticBody", "StaticBody3D");
|
|
|
+ ClassDB::add_compatibility_class("StreamTexture", "CompressedTexture2D");
|
|
|
+ ClassDB::add_compatibility_class("TextureProgress", "TextureProgressBar");
|
|
|
+ ClassDB::add_compatibility_class("VideoPlayer", "VideoStreamPlayer");
|
|
|
+ ClassDB::add_compatibility_class("ViewportContainer", "SubViewportContainer");
|
|
|
+ ClassDB::add_compatibility_class("Viewport", "SubViewport");
|
|
|
+ ClassDB::add_compatibility_class("VisibilityEnabler", "VisibleOnScreenEnabler3D");
|
|
|
+ ClassDB::add_compatibility_class("VisibilityNotifier", "VisibleOnScreenNotifier3D");
|
|
|
+ ClassDB::add_compatibility_class("VisibilityNotifier2D", "VisibleOnScreenNotifier2D");
|
|
|
+ ClassDB::add_compatibility_class("VisibilityNotifier3D", "VisibleOnScreenNotifier3D");
|
|
|
+ ClassDB::add_compatibility_class("VisualServer", "RenderingServer");
|
|
|
+ ClassDB::add_compatibility_class("World", "World3D");
|
|
|
+#ifndef PHYSICS_2D_DISABLED
|
|
|
ClassDB::add_compatibility_class("Physics2DDirectBodyState", "PhysicsDirectBodyState2D");
|
|
|
ClassDB::add_compatibility_class("Physics2DDirectSpaceState", "PhysicsDirectSpaceState2D");
|
|
|
ClassDB::add_compatibility_class("Physics2DServer", "PhysicsServer2D");
|
|
|
ClassDB::add_compatibility_class("Physics2DShapeQueryParameters", "PhysicsShapeQueryParameters2D");
|
|
|
ClassDB::add_compatibility_class("Physics2DTestMotionResult", "PhysicsTestMotionResult2D");
|
|
|
+ ClassDB::add_compatibility_class("RayShape2D", "SeparationRayShape2D");
|
|
|
+#endif // PHYSICS_2D_DISABLED
|
|
|
+#ifndef PHYSICS_3D_DISABLED
|
|
|
+ ClassDB::add_compatibility_class("Area", "Area3D");
|
|
|
+ ClassDB::add_compatibility_class("BoxShape", "BoxShape3D");
|
|
|
+ ClassDB::add_compatibility_class("CapsuleShape", "CapsuleShape3D");
|
|
|
+ ClassDB::add_compatibility_class("CollisionObject", "CollisionObject3D");
|
|
|
+ ClassDB::add_compatibility_class("CollisionPolygon", "CollisionPolygon3D");
|
|
|
+ ClassDB::add_compatibility_class("CollisionShape", "CollisionShape3D");
|
|
|
+ ClassDB::add_compatibility_class("ConcavePolygonShape", "ConcavePolygonShape3D");
|
|
|
+ ClassDB::add_compatibility_class("ConeTwistJoint", "ConeTwistJoint3D");
|
|
|
+ ClassDB::add_compatibility_class("ConvexPolygonShape", "ConvexPolygonShape3D");
|
|
|
+ ClassDB::add_compatibility_class("CPUParticles", "CPUParticles3D");
|
|
|
+ ClassDB::add_compatibility_class("CylinderShape", "CylinderShape3D");
|
|
|
+ ClassDB::add_compatibility_class("DirectionalLight", "DirectionalLight3D");
|
|
|
+ ClassDB::add_compatibility_class("EditorSpatialGizmo", "EditorNode3DGizmo");
|
|
|
+ ClassDB::add_compatibility_class("EditorSpatialGizmoPlugin", "EditorNode3DGizmoPlugin");
|
|
|
+ ClassDB::add_compatibility_class("Generic6DOFJoint", "Generic6DOFJoint3D");
|
|
|
+ ClassDB::add_compatibility_class("HeightMapShape", "HeightMapShape3D");
|
|
|
+ ClassDB::add_compatibility_class("HingeJoint", "HingeJoint3D");
|
|
|
+ ClassDB::add_compatibility_class("Joint", "Joint3D");
|
|
|
+ ClassDB::add_compatibility_class("KinematicBody", "CharacterBody3D");
|
|
|
+ ClassDB::add_compatibility_class("KinematicBody2D", "CharacterBody2D");
|
|
|
+ ClassDB::add_compatibility_class("KinematicCollision", "KinematicCollision3D");
|
|
|
ClassDB::add_compatibility_class("PhysicsBody", "PhysicsBody3D");
|
|
|
+ ClassDB::add_compatibility_class("PhysicalBone", "PhysicalBone3D");
|
|
|
ClassDB::add_compatibility_class("PhysicsDirectBodyState", "PhysicsDirectBodyState3D");
|
|
|
ClassDB::add_compatibility_class("PhysicsDirectSpaceState", "PhysicsDirectSpaceState3D");
|
|
|
ClassDB::add_compatibility_class("PhysicsServer", "PhysicsServer3D");
|
|
|
ClassDB::add_compatibility_class("PhysicsShapeQueryParameters", "PhysicsShapeQueryParameters3D");
|
|
|
ClassDB::add_compatibility_class("PinJoint", "PinJoint3D");
|
|
|
ClassDB::add_compatibility_class("PlaneShape", "WorldBoundaryShape3D");
|
|
|
- ClassDB::add_compatibility_class("Position2D", "Marker2D");
|
|
|
- ClassDB::add_compatibility_class("Position3D", "Marker3D");
|
|
|
- ClassDB::add_compatibility_class("ProceduralSky", "Sky");
|
|
|
ClassDB::add_compatibility_class("RayCast", "RayCast3D");
|
|
|
ClassDB::add_compatibility_class("RayShape", "SeparationRayShape3D");
|
|
|
- ClassDB::add_compatibility_class("RayShape2D", "SeparationRayShape2D");
|
|
|
- ClassDB::add_compatibility_class("RemoteTransform", "RemoteTransform3D");
|
|
|
ClassDB::add_compatibility_class("RigidBody", "RigidBody3D");
|
|
|
ClassDB::add_compatibility_class("RigidDynamicBody2D", "RigidBody2D");
|
|
|
ClassDB::add_compatibility_class("RigidDynamicBody3D", "RigidBody3D");
|
|
|
ClassDB::add_compatibility_class("Shape", "Shape3D");
|
|
|
- ClassDB::add_compatibility_class("ShortCut", "Shortcut");
|
|
|
- ClassDB::add_compatibility_class("Skeleton", "Skeleton3D");
|
|
|
- ClassDB::add_compatibility_class("SkeletonIK", "SkeletonIK3D");
|
|
|
ClassDB::add_compatibility_class("SliderJoint", "SliderJoint3D");
|
|
|
ClassDB::add_compatibility_class("SoftBody", "SoftBody3D");
|
|
|
ClassDB::add_compatibility_class("SoftDynamicBody3D", "SoftBody3D");
|
|
|
- ClassDB::add_compatibility_class("Spatial", "Node3D");
|
|
|
- ClassDB::add_compatibility_class("SpatialGizmo", "Node3DGizmo");
|
|
|
- ClassDB::add_compatibility_class("SpatialMaterial", "StandardMaterial3D");
|
|
|
ClassDB::add_compatibility_class("SphereShape", "SphereShape3D");
|
|
|
- ClassDB::add_compatibility_class("SpotLight", "SpotLight3D");
|
|
|
ClassDB::add_compatibility_class("SpringArm", "SpringArm3D");
|
|
|
- ClassDB::add_compatibility_class("Sprite", "Sprite2D");
|
|
|
- ClassDB::add_compatibility_class("StaticBody", "StaticBody3D");
|
|
|
- ClassDB::add_compatibility_class("StreamTexture", "CompressedTexture2D");
|
|
|
- ClassDB::add_compatibility_class("TextureProgress", "TextureProgressBar");
|
|
|
ClassDB::add_compatibility_class("VehicleBody", "VehicleBody3D");
|
|
|
ClassDB::add_compatibility_class("VehicleWheel", "VehicleWheel3D");
|
|
|
- ClassDB::add_compatibility_class("VideoPlayer", "VideoStreamPlayer");
|
|
|
- ClassDB::add_compatibility_class("ViewportContainer", "SubViewportContainer");
|
|
|
- ClassDB::add_compatibility_class("Viewport", "SubViewport");
|
|
|
- ClassDB::add_compatibility_class("VisibilityEnabler", "VisibleOnScreenEnabler3D");
|
|
|
- ClassDB::add_compatibility_class("VisibilityNotifier", "VisibleOnScreenNotifier3D");
|
|
|
- ClassDB::add_compatibility_class("VisibilityNotifier2D", "VisibleOnScreenNotifier2D");
|
|
|
- ClassDB::add_compatibility_class("VisibilityNotifier3D", "VisibleOnScreenNotifier3D");
|
|
|
- ClassDB::add_compatibility_class("VisualServer", "RenderingServer");
|
|
|
- ClassDB::add_compatibility_class("World", "World3D");
|
|
|
+#endif // PHYSICS_3D_DISABLED
|
|
|
|
|
|
// VisualShader classes.
|
|
|
ClassDB::add_compatibility_class("VisualShaderNodeScalarConstant", "VisualShaderNodeFloatConstant");
|