summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-12-14 20:05:30 +0100
committerGitHub <noreply@github.com>2021-12-14 20:05:30 +0100
commit7c716bf37c7de2d8b248739fcb395d23b935c900 (patch)
tree9226bf3caf3aaeb080721a50452d8844d349d9bd
parent4601809c5a14ae0e5ca8469bc191121ed36fd281 (diff)
parentb6caa0587a8e16f77b0029c5bb7a70577afb0ec7 (diff)
Merge pull request #55936 from Calinou/portal-room-add-compatibility-classes
-rw-r--r--scene/register_scene_types.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/scene/register_scene_types.cpp b/scene/register_scene_types.cpp
index 9023b758b6..283a3a4883 100644
--- a/scene/register_scene_types.cpp
+++ b/scene/register_scene_types.cpp
@@ -882,6 +882,14 @@ void register_scene_types() {
ClassDB::add_compatibility_class("GIProbeData", "VoxelGIData");
ClassDB::add_compatibility_class("BakedLightmap", "LightmapGI");
ClassDB::add_compatibility_class("BakedLightmapData", "LightmapGIData");
+ // Portal and room occlusion was replaced by raster occlusion (OccluderInstance3D node).
+ ClassDB::add_compatibility_class("Portal", "Node3D");
+ ClassDB::add_compatibility_class("Room", "Node3D");
+ ClassDB::add_compatibility_class("RoomManager", "Node3D");
+ ClassDB::add_compatibility_class("RoomGroup", "Node3D");
+ ClassDB::add_compatibility_class("Occluder", "Node3D");
+ // The OccluderShapeSphere resource (used in the old Occluder node) is not present anymore.
+ ClassDB::add_compatibility_class("OccluderShapeSphere", "Resource");
// Renamed in 4.0.
// Keep alphabetical ordering to easily locate classes and avoid duplicates.