godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.3k stars 21.05k forks source link

Anonymous null entry appearing in inspector for custom scripts #73950

Closed Malcolmnixon closed 1 year ago

Malcolmnixon commented 1 year ago

Godot version

4.0 RC 5

System information

Windows 11, Vulkan Mobile, NVidia RTX 3070 TI

Issue description

In godot-xr-tools a bug (https://github.com/GodotVR/godot-xr-tools/issues/391) was reported indicating that some objects are getting duplicated when the scene is saved. This appears to be introduced with RC5 as the problem does not occur in RC4 or earlier. image

Inspecting the TSCN file shows a large number of duplicate entries with an anonymous property and the value null:

[node name="GrabPointSnapSaucer" parent="." index="7" instance=ExtResource("4")]
 = null

Inspecting these objects shows the presence of an anonymous null property at the top of the properties list: image

Steps to reproduce

This occurs in the 4.0-dev branch of godot-xr-tools https://github.com/GodotVR/godot-xr-tools

The teacup (\scenes\pickable_demo\objects\teacup.tscn) demonstrates object duplication.

The grab points show the anonymous null node: \addons\godot-xr-tools\objects\grab_points\grab_point_hand_left.tscn \addons\godot-xr-tools\objects\grab_points\grab_point_hand_right.tscn \addons\godot-xr-tools\objects\grab_points\grab_point_snap.tscn

Minimal reproduction project

Could not produce simpler demo.

Malcolmnixon commented 1 year ago

This issue is fixed in the current master - bisecting shows https://github.com/godotengine/godot/commit/eba984a44f37ef263ee2389aa8eae631298ce0ff fixed the issue.