-
Notifications
You must be signed in to change notification settings - Fork 421
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
Fix negative scale and size being broken #985
Conversation
Where is negative scale used? Does it work with autosize and masking? I don't think I considered that case when I wrote the code for these things. |
Anywhere where "flipping" is desired, e.g. the catcher in osu!catch. |
I'd like to see in this PR a test case where a negatively sized sprite is placed within an autosize container. This case should definitely be supported. Another situation which we may want to support but might prove hard to do is negatively sized containers (with an without masking). |
} | ||
}); | ||
|
||
box2.ScaleTo(new Vector2(-1), 1000, Easing.InSine).Then().ScaleTo(new Vector2(1), 1000, Easing.InSine).Loop(); |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
ok ready for a re-look through. |
@@ -744,7 +744,10 @@ public Vector2 Scale | |||
|
|||
set | |||
{ | |||
value = Vector2.ComponentMax(new Vector2(Precision.FLOAT_EPSILON), value); | |||
if (Math.Abs(value.X) < Precision.FLOAT_EPSILON) | |||
value.X = Precision.FLOAT_EPSILON; |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
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.
Other than the one comment I left I believe this is good to be merged in.
No description provided.