From 9e95e5d8a8d4860716b7b3f0f41404d02d0a9a70 Mon Sep 17 00:00:00 2001 From: Malcolm Nixon Date: Wed, 19 Jun 2024 21:56:41 -0400 Subject: [PATCH] Fix properties forwarding to only forward customized properties. --- VERSIONS.md | 3 +++ addons/godot-xr-tools/objects/viewport_2d_in_3d.gd | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/VERSIONS.md b/VERSIONS.md index b7ba752d..d50f6a6b 100644 --- a/VERSIONS.md +++ b/VERSIONS.md @@ -1,3 +1,6 @@ +# 4.3.3 +- Fix Viewport2Din3D property forwarding + # 4.3.2 - Move fade logic into effect - Added collision fade support diff --git a/addons/godot-xr-tools/objects/viewport_2d_in_3d.gd b/addons/godot-xr-tools/objects/viewport_2d_in_3d.gd index fec78821..ccc2118d 100644 --- a/addons/godot-xr-tools/objects/viewport_2d_in_3d.gd +++ b/addons/godot-xr-tools/objects/viewport_2d_in_3d.gd @@ -267,8 +267,8 @@ func _update_scene_property_list(): var all_properties := node_script.get_script_property_list() # Join this with the custom property list of the object created by the script - if scene_node.has_method("get_property_list"): - all_properties.append_array(scene_node.get_property_list()) + if scene_node.has_method("_get_property_list"): + all_properties.append_array(scene_node.call("_get_property_list")) for property in all_properties: # Filter out only the properties that are supposed to be stored, or are used for grouping