From f3c20d9823a3c9b3903a2728016f39806d5e9531 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Wed, 16 Nov 2022 02:31:50 +0100 Subject: [PATCH] Add a node compatibility handler for ProximityGroup This converts ProximityGroup nodes from 3.x projects into Node3Ds (their parent), rather than bare Nodes. --- scene/register_scene_types.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/register_scene_types.cpp b/scene/register_scene_types.cpp index 0f55c7b3b81..ee45a8ea6fc 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).