Browse Source

Fix Alpha Border bugfix

Comanche_Ak 7 years ago
parent
commit
51597b6d69
1 changed files with 1 additions and 0 deletions
  1. 1 0
      core/image.cpp

+ 1 - 0
core/image.cpp

@@ -2474,6 +2474,7 @@ void Image::fix_alpha_edges() {
 					if (rp[3] < alpha_threshold)
 						continue;
 
+					closest_dist = dist;
 					closest_color[0] = rp[0];
 					closest_color[1] = rp[1];
 					closest_color[2] = rp[2];