diff options
Diffstat (limited to 'source/blender/compositor/operations/COM_ScaleOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_ScaleOperation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/compositor/operations/COM_ScaleOperation.cpp b/source/blender/compositor/operations/COM_ScaleOperation.cpp index 45e846998af..2e23df73b67 100644 --- a/source/blender/compositor/operations/COM_ScaleOperation.cpp +++ b/source/blender/compositor/operations/COM_ScaleOperation.cpp @@ -223,13 +223,13 @@ void ScaleFixedSizeOperation::initExecution() /* fit X */ const float div = asp_src / asp_dst; this->relX /= div; - this->offsetX = ((w_src - (w_src * div)) / (w_src / w_dst)) / 2.0f; + this->offsetX += ((w_src - (w_src * div)) / (w_src / w_dst)) / 2.0f; } else { /* fit Y */ const float div = asp_dst / asp_src; this->relY /= div; - this->offsetY = ((h_src - (h_src * div)) / (h_src / h_dst)) / 2.0f; + this->offsetY += ((h_src - (h_src * div)) / (h_src / h_dst)) / 2.0f; } this->is_offset = true; |