-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
reset button next in Path2D "curve" property not working. #36372
Comments
Same kind of bug is present in spatial path. @shafnaz If the above fix is applied then you have to assign a new @KoBeWi If that sounds good to you then I will issue a PR (already tested). |
@simpuid If you have a PR ready, just open it and someone will review whether the fix is good or not. |
To do so, Object gets a new virtual `object_duplicate` (`duplicate` already taken by incompatible implementations in derived classes) which is implemented in `Node` and `Resource`. This allows fixing godotengine#36372 properly in `ClassDB` by duplicating Objects that need it to avoid using the same one as default value. (So far it seems only Path2D/Path3D's `curve` property uses this.) Fixes godotengine#36372. Fixes godotengine#36650. Supersedes godotengine#36644 and godotengine#36656.
Fixes godotengine#36372 as Path2D/Path3D's `curve` property no longer uses a Curve instance as default value, but instead it gets a (unique) default Curve instance when created through the editor (CreateDialog). ClassDB gets a sanity check to ensure that we don't do the same mistake for other properties in the future, but instead use the dedicated property usage hint. Fixes godotengine#36372. Fixes godotengine#36650. Supersedes godotengine#36644 and godotengine#36656. Co-authored-by: Thakee Nathees <thakeenathees@gmail.com> Co-authored-by: simpuid <utkarsh.email@yahoo.com>
Godot version:
3.2
OS/device including version:
Windows 10
Issue description:
The reset button does not reset to an empty curve. (See .gif animation)
Steps to reproduce:
Minimal reproduction project:
The text was updated successfully, but these errors were encountered: