Skip to content
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

[Merged by Bors] - fix flip of contributor bird #1573

Closed
wants to merge 2 commits into from

Conversation

mockersf
Copy link
Member

@mockersf mockersf commented Mar 6, 2021

Since 8921717, some birds in example contributors where not colored.

Fix is to use flip_x of Sprite instead of setting transform.scale.x to -1 as described in #1407.

It may be an unintended side effect, as now we can't easily display a colored sprite while changing it's scale from 1 to -1, we would have to change it's scale from 1 to 0, then flip it, then change scale from 0 to 1.

@alice-i-cecile alice-i-cecile added C-Bug An unexpected or incorrect behavior C-Examples An addition or correction to our examples labels Mar 6, 2021
@cart
Copy link
Member

cart commented Mar 6, 2021

This is more explicit so I think we should roll with it, but maybe we should also just re-disable back-face culling? I don't see much of a reason to cull back facing sprites given that the 3d-perspective never changes (and there is no "overlapping geometry" to be culled).

@cart
Copy link
Member

cart commented Mar 7, 2021

bors r+

bors bot pushed a commit that referenced this pull request Mar 7, 2021
Since 8921717, some birds in example `contributors` where not colored.

Fix is to use `flip_x` of `Sprite` instead of setting `transform.scale.x` to `-1` as described in #1407.


It may be an unintended side effect, as now we can't easily display a colored sprite while changing it's scale from `1` to `-1`, we would have to change it's scale from `1` to `0`, then flip it, then change scale from `0` to `1`.
@bors
Copy link
Contributor

bors bot commented Mar 7, 2021

@bors bors bot changed the title fix flip of contributor bird [Merged by Bors] - fix flip of contributor bird Mar 7, 2021
@bors bors bot closed this Mar 7, 2021
@mockersf mockersf deleted the contributors branch April 27, 2021 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Bug An unexpected or incorrect behavior C-Examples An addition or correction to our examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants