summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2022-11-16 02:31:50 +0100
committerHugo Locurcio <hugo.locurcio@hugo.pro>2022-11-16 02:31:50 +0100
commitf3c20d9823a3c9b3903a2728016f39806d5e9531 (patch)
tree5bf30cddc190546188810eb6a23f58a39ae301d1 /scene
parent5993209b2649c93b56789bfc243c5a6046ee77ce (diff)
Add a node compatibility handler for ProximityGroup
This converts ProximityGroup nodes from 3.x projects into Node3Ds (their parent), rather than bare Nodes.
Diffstat (limited to 'scene')
-rw-r--r--scene/register_scene_types.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/register_scene_types.cpp b/scene/register_scene_types.cpp
index 0f55c7b3b8..ee45a8ea6f 100644
--- a/scene/register_scene_types.cpp
+++ b/scene/register_scene_types.cpp
@@ -960,6 +960,7 @@ void register_scene_types() {
ClassDB::add_compatibility_class("Navigation3D", "Node3D");
ClassDB::add_compatibility_class("Navigation2D", "Node2D");
ClassDB::add_compatibility_class("OpenSimplexNoise", "FastNoiseLite");
+ ClassDB::add_compatibility_class("ProximityGroup", "Node3D");
ClassDB::add_compatibility_class("ToolButton", "Button");
ClassDB::add_compatibility_class("YSort", "Node2D");
// Portal and room occlusion was replaced by raster occlusion (OccluderInstance3D node).