Merge pull request #55936 from Calinou/portal-room-add-compatibility-classes

This commit is contained in:
Rémi Verschelde 2021-12-14 20:05:30 +01:00 committed by GitHub
commit 7c716bf37c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.