-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exported typed variables in a tool script have wrong initial value if not initialized #62363
Comments
Addition: this bug occurs after restarting the editor (no reset buttons). After saving the scene, the inspector starts working correctly again. I could not reproduce the bug with saving default values for nodes. Only for resources ( godot/scene/resources/resource_format_text.cpp Lines 2174 to 2178 in a83eb16
|
Just a few pictures to illustrate what happens when adding
Create Arena node, change properties to see revert arrow button appear: Then uncomment Oddly enough, in the reverse way, if you temporarily comment out So my current workaround is to comment |
…value if not initialized godotengine#62363
Godot version
ecf1877
System information
Windows 10 x64
Issue description
test
will have value saved to scene even when it's not changed. It will save 0. The revert arrow appears, but clicking it does nothing.Steps to reproduce
@tool
scriptMinimal reproduction project
No response
The text was updated successfully, but these errors were encountered: