diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-06-19 12:31:36 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-06-19 13:09:26 +0300 |
commit | 349946bd010b1112b13c8594aabfb318c330bc0d (patch) | |
tree | 1cb0bb5a1f8a7328c38f14a9d277ee4fed37246a /source/blender/editors | |
parent | 33e5163550c5b4326f27662cdd298961ef3fb1cd (diff) |
Cleanup: quiet warnings
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/mesh/editmesh_bisect.c | 6 | ||||
-rw-r--r-- | source/blender/editors/mesh/editmesh_extrude.c | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/editors/mesh/editmesh_bisect.c b/source/blender/editors/mesh/editmesh_bisect.c index 31b4c7ef87e..7c55f0033a3 100644 --- a/source/blender/editors/mesh/editmesh_bisect.c +++ b/source/blender/editors/mesh/editmesh_bisect.c @@ -462,6 +462,7 @@ static void manipulator_bisect_prop_depth_get( wmOperator *op = man->data.op; BLI_assert(value_len == 1); + UNUSED_VARS_NDEBUG(value_len); float plane_co[3], plane_no[3]; RNA_property_float_get_array(op->ptr, man->data.prop_plane_co, plane_co); @@ -478,6 +479,7 @@ static void manipulator_bisect_prop_depth_set( wmOperator *op = man->data.op; BLI_assert(value_len == 1); + UNUSED_VARS_NDEBUG(value_len); float plane_co[3], plane[4]; RNA_property_float_get_array(op->ptr, man->data.prop_plane_co, plane_co); @@ -526,7 +528,9 @@ static void manipulator_bisect_prop_angle_get( { ManipulatorGroup *man = mpr->parent_mgroup->customdata; wmOperator *op = man->data.op; + BLI_assert(value_len == 1); + UNUSED_VARS_NDEBUG(value_len); float plane_no[4]; RNA_property_float_get_array(op->ptr, man->data.prop_plane_no, plane_no); @@ -550,7 +554,9 @@ static void manipulator_bisect_prop_angle_set( { ManipulatorGroup *man = mpr->parent_mgroup->customdata; wmOperator *op = man->data.op; + BLI_assert(value_len == 1); + UNUSED_VARS_NDEBUG(value_len); float plane_no[4]; RNA_property_float_get_array(op->ptr, man->data.prop_plane_no, plane_no); diff --git a/source/blender/editors/mesh/editmesh_extrude.c b/source/blender/editors/mesh/editmesh_extrude.c index c1f760be158..4a7ef86635a 100644 --- a/source/blender/editors/mesh/editmesh_extrude.c +++ b/source/blender/editors/mesh/editmesh_extrude.c @@ -895,6 +895,7 @@ static void manipulator_spin_prop_depth_get( wmOperator *op = man->data.op; BLI_assert(value_len == 1); + UNUSED_VARS_NDEBUG(value_len); float plane_co[3], plane_no[3]; RNA_property_float_get_array(op->ptr, man->data.prop_axis_co, plane_co); @@ -911,6 +912,7 @@ static void manipulator_spin_prop_depth_set( wmOperator *op = man->data.op; BLI_assert(value_len == 1); + UNUSED_VARS_NDEBUG(value_len); float plane_co[3], plane[4]; RNA_property_float_get_array(op->ptr, man->data.prop_axis_co, plane_co); @@ -959,7 +961,9 @@ static void manipulator_spin_prop_axis_angle_get( { ManipulatorSpinGroup *man = mpr->parent_mgroup->customdata; wmOperator *op = man->data.op; + BLI_assert(value_len == 1); + UNUSED_VARS_NDEBUG(value_len); float plane_no[4]; RNA_property_float_get_array(op->ptr, man->data.prop_axis_no, plane_no); @@ -983,7 +987,9 @@ static void manipulator_spin_prop_axis_angle_set( { ManipulatorSpinGroup *man = mpr->parent_mgroup->customdata; wmOperator *op = man->data.op; + BLI_assert(value_len == 1); + UNUSED_VARS_NDEBUG(value_len); float plane_no[4]; RNA_property_float_get_array(op->ptr, man->data.prop_axis_no, plane_no); |