diff options
Diffstat (limited to 'source/blender/editors/gizmo_library')
3 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/editors/gizmo_library/gizmo_library_utils.c b/source/blender/editors/gizmo_library/gizmo_library_utils.c index 2e5c3b37542..1f61c45eb80 100644 --- a/source/blender/editors/gizmo_library/gizmo_library_utils.c +++ b/source/blender/editors/gizmo_library/gizmo_library_utils.c @@ -68,9 +68,10 @@ float gizmo_offset_from_value(GizmoCommonData *data, const bool constrained, const bool inverted) { - if (constrained) + if (constrained) { return gizmo_offset_from_value_constr( data->range_fac, data->min, data->range, value, inverted); + } return value; } diff --git a/source/blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.c b/source/blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.c index 3e382cf97a6..780cca66fb9 100644 --- a/source/blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.c +++ b/source/blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.c @@ -1118,8 +1118,9 @@ static void gizmo_cage2d_exit(bContext *C, wmGizmo *gz, const bool cancel) MEM_SAFE_FREE(data->dial); - if (!cancel) + if (!cancel) { return; + } wmGizmoProperty *gz_prop; diff --git a/source/blender/editors/gizmo_library/gizmo_types/cage3d_gizmo.c b/source/blender/editors/gizmo_library/gizmo_types/cage3d_gizmo.c index 323ae38c27c..e2a86469da1 100644 --- a/source/blender/editors/gizmo_library/gizmo_types/cage3d_gizmo.c +++ b/source/blender/editors/gizmo_library/gizmo_types/cage3d_gizmo.c @@ -616,8 +616,9 @@ static void gizmo_cage3d_exit(bContext *C, wmGizmo *gz, const bool cancel) { RectTransformInteraction *data = gz->interaction_data; - if (!cancel) + if (!cancel) { return; + } wmGizmoProperty *gz_prop; |