Compare commits

...

3 Commits

Author SHA1 Message Date
greenkeeper[bot]
b192a81229 chore(package): update babel-loader to version 8.0.5
Closes #342
2019-01-04 14:39:39 +00:00
Chris Willis-Ford
bfa90a07cc Merge pull request #385 from fsih/fixBlurry
Always use nearest for raster textures
2019-01-03 14:00:29 -05:00
DD
5f38cd1ee1 Always use nearest for raster textures 2019-01-03 12:00:28 -05:00
2 changed files with 6 additions and 6 deletions

View File

@@ -26,7 +26,7 @@
"devDependencies": {
"babel-core": "^6.23.1",
"babel-eslint": "^8.2.1",
"babel-loader": "^7.1.4",
"babel-loader": "^8.0.5",
"babel-polyfill": "^6.22.0",
"babel-preset-env": "^1.6.1",
"chromeless": "^1.5.1",

View File

@@ -426,16 +426,16 @@ class Drawable {
* Should the drawable use NEAREST NEIGHBOR or LINEAR INTERPOLATION mode
*/
get useNearest () {
// We can't use nearest neighbor unless we are a multiple of 90 rotation
if (this._direction % 90 !== 0) {
return false;
}
// Raster skins (bitmaps) should always prefer nearest neighbor
if (this.skin.isRaster) {
return true;
}
// We can't use nearest neighbor unless we are a multiple of 90 rotation
if (this._direction % 90 !== 0) {
return false;
}
// If the scale of the skin is very close to 100 (0.99999 variance is okay I guess)
if (Math.abs(this.scale[0]) > 99 && Math.abs(this.scale[0]) < 101 &&
Math.abs(this.scale[1]) > 99 && Math.abs(this.scale[1]) < 101) {