[Bf-blender-cvs] [216e8d887b6] master: Cleanup: quiet parentheses warning

Campbell Barton noreply at git.blender.org
Mon Oct 24 11:42:10 CEST 2022


Commit: 216e8d887b6c80db4665e58ff91434659c21c5ae
Author: Campbell Barton
Date:   Mon Oct 24 20:32:03 2022 +1100
Branches: master
https://developer.blender.org/rB216e8d887b6c80db4665e58ff91434659c21c5ae

Cleanup: quiet parentheses warning

===================================================================

M	source/blender/editors/transform/transform_mode_curveshrinkfatten.c

===================================================================

diff --git a/source/blender/editors/transform/transform_mode_curveshrinkfatten.c b/source/blender/editors/transform/transform_mode_curveshrinkfatten.c
index d8f04dea161..0b87b45679a 100644
--- a/source/blender/editors/transform/transform_mode_curveshrinkfatten.c
+++ b/source/blender/editors/transform/transform_mode_curveshrinkfatten.c
@@ -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.



More information about the Bf-blender-cvs mailing list