error in last commit

This commit is contained in:
2017-08-03 20:05:43 +10:00
parent c3eac16eb7
commit 3b57504c09

View File

@@ -537,7 +537,7 @@ static void manipulator_rect_transform_modal(
}
else if (mpr->highlight_part == ED_MANIPULATOR_RECT_TRANSFORM_INTERSECT_SCALEY_UP) {
int a = (transform_flag & ED_MANIPULATOR_RECT_TRANSFORM_FLAG_SCALE_UNIFORM) ? 0 : 1;
valuey = max_ff(valuey, dims[0] * data->orig_scale[a] / (pivot_center ? -2 : -1));
valuey = max_ff(valuey, dims[1] * data->orig_scale[a] / (pivot_center ? -2 : -1));
if (pivot_center == false) {
mpr->matrix_offset[3][1] = data->orig_offset[1] + valuey / 2.0f;
}