-
Notifications
You must be signed in to change notification settings - Fork 66
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
Add --unique option to support spritezero's generateLayoutUnique #10
Conversation
Also regenerate fixtures since they were stale. A fresh copy of origin/master fails to run tests since it picks up spritezero 3.5+ which switched to shelf-pack instead of bin-pack.
@bhousel This is the companion patch that adds |
|
||
if (argv.retina) { | ||
ratio = 2; | ||
} else if (argv.ratio) { | ||
ratio = parseFloat(argv.ratio); | ||
} else if (argv.unique) { |
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.
This shouldn't be an exclusive option to argv.ratio - else if will mean that if argv.ratio
is defined, the argv.unique option will not have an effect, which is incorrect.
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.
Good catch!
Looks good @vdumont, thanks! |
@bhousel Awesome, thanks much! |
@bhousel Sorry forgot one thing, any chance you can tag this for a new release? |
Awesome, thank you so much! 👍 |
Add --unique option to support spritezero's
generateLayoutUnique
.Also regenerate fixtures since they were stale. ie: A fresh copy of origin/master fails to run tests since it picks up spritezero 3.5+ which switched to shelf-pack instead of bin-pack.