Cleanup: quiet parentheses warning

This commit is contained in:
Campbell Barton 2022-10-24 20:32:03 +11:00
parent 0ee9282b5c
commit 216e8d887b
1 changed files with 2 additions and 2 deletions

View File

@ -102,8 +102,8 @@ void initCurveShrinkFatten(TransInfo *t)
t->flag |= T_NO_CONSTRAINT;
float scale_factor = 0.0f;
if ((t->spacetype == SPACE_VIEW3D) && (t->region->regiontype == RGN_TYPE_WINDOW) &&
t->data_len_all == 1 ||
if (((t->spacetype == SPACE_VIEW3D) && (t->region->regiontype == RGN_TYPE_WINDOW) &&
(t->data_len_all == 1)) ||
(t->data_len_all == 3 && TRANS_DATA_CONTAINER_FIRST_OK(t)->data[0].val == NULL)) {
/* For cases where only one point on the curve is being transformed and the radius of that
* point is zero, use the factor to multiply the offset of the ratio and allow scaling.