You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I pointed out several times earlier in #80284, the references to singletons in GDScript are still not updated after the GDExtension reload.
Code_X5GbuGGVab.1.1.mp4
Singletons themselves are updated and work correctly, but references to these singletons are not updated in @tool scripts. That is, Engine.get_singleton returns the actual working reference, but using the singleton directly through its name causes errors.
I'm still not sure how to fix this - I think we'll need some help from the GDScript team to figure out how (or if it's even possible) to refresh those references.
Godot version
v4.2.rc.mono.custom_build [ad72de5]
System information
Windows 10
Issue description
As I pointed out several times earlier in #80284, the references to singletons in
GDScript
are still not updated after theGDExtension
reload.Code_X5GbuGGVab.1.1.mp4
Singletons themselves are updated and work correctly, but references to these singletons are not updated in
@tool
scripts. That is,Engine.get_singleton
returns the actual working reference, but using the singleton directly through its name causes errors.Steps to reproduce
4.2.reload_singleton
branch from the MRP repository https://github.com/DmitriySalnikov/gde_test_cases/tree/4.2.reload_singletonproject/
folderMinimal reproduction project
https://github.com/DmitriySalnikov/gde_test_cases/tree/4.2.reload_singleton
The text was updated successfully, but these errors were encountered: