-
-
Notifications
You must be signed in to change notification settings - Fork 22k
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
Clamp Decal size to positive values #61492
Conversation
You should also change the hint. And then IMO it can throw an error instead of clamping manually, so it doesn't change things without the user being aware when setting invalid values from code. |
Last time I tried, property range hints don't work for Vector properties (this affects min, max and step). |
Should be fine for the time being, but needs a rebase as As for range hints for vector properties, this could maybe be implemented for 4.1. @Sauermann opened a proposal about it: godotengine/godot-proposals#6260 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine to me
Rebased and tested again, it works as expected. I've also added a bit of documentation regarding decal size (culling efficiency). |
4264f76
to
067a0e1
Compare
This prevents using negative size, while also preventing error messages from being spammed if one of the decal's dimensions is set to exactly 0.
067a0e1
to
8b1de10
Compare
Thanks! |
This prevents using negative size, while also preventing error messages from being spammed if one of the decal's dimensions is set to exactly 0.
This closes #61491.