Skip pixel translation in blur if no offset or strength change
This commit is contained in:
@@ -781,8 +781,9 @@ class ImageDataUtil {
|
||||
bIndex += 2;
|
||||
}
|
||||
|
||||
var x: Int;
|
||||
var y: Int;
|
||||
var x:Int;
|
||||
var y:Int;
|
||||
if (offset != 0 || strength != 1) {
|
||||
if (offset <= 0) {
|
||||
y = 0;
|
||||
while (y < h) {
|
||||
@@ -804,6 +805,7 @@ class ImageDataUtil {
|
||||
y -= 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
image.dirty = true;
|
||||
image.version++;
|
||||
|
||||
Reference in New Issue
Block a user