-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix top of head texture being rotated
- Loading branch information
1 parent
0fa80a8
commit 585d815
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ func RenderBody(skin *image.NRGBA, opts Options) *image.NRGBA { | |
|
||
var ( | ||
frontHead *image.NRGBA = removeTransparency(extract(skin, HeadFront)) | ||
topHead *image.NRGBA = removeTransparency(extract(skin, HeadTop)) | ||
topHead *image.NRGBA = rotate90(removeTransparency(extract(skin, HeadTop))) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
PassTheMayo
Author
Member
|
||
rightHead *image.NRGBA = removeTransparency(extract(skin, HeadRight)) | ||
frontTorso *image.NRGBA = removeTransparency(extract(skin, TorsoFront)) | ||
frontLeftArm *image.NRGBA = nil | ||
|
@@ -41,7 +41,7 @@ func RenderBody(skin *image.NRGBA, opts Options) *image.NRGBA { | |
if opts.Overlay { | ||
overlaySkin := fixTransparency(skin) | ||
|
||
topHead = composite(topHead, extract(overlaySkin, HeadOverlayTop), 0, 0) | ||
topHead = composite(topHead, rotate90(extract(overlaySkin, HeadOverlayTop)), 0, 0) | ||
frontHead = composite(frontHead, extract(overlaySkin, HeadOverlayFront), 0, 0) | ||
rightHead = composite(rightHead, extract(overlaySkin, HeadOverlayRight), 0, 0) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Do we only need a single rotate90 (and/or not a rotate180)? I'm still seeing the errant behavior on the site: