diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2020-10-07 21:38:20 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2020-10-07 21:38:20 +0300 |
commit | 3c045923a296b6fc375ef08949db2f7ed490b07d (patch) | |
tree | 83cc88cba3e0034a046dfaa13efebd7115c8652e /source/blender/editors | |
parent | 833066088e4a68815dc6a31783546e200229e9f4 (diff) |
Cleanup: Remove redundant if-condition
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/transform/transform_generics.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/editors/transform/transform_generics.c b/source/blender/editors/transform/transform_generics.c index 03e41ef87e3..7ad4efd844f 100644 --- a/source/blender/editors/transform/transform_generics.c +++ b/source/blender/editors/transform/transform_generics.c @@ -529,10 +529,8 @@ void initTransInfo(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *eve if (op && ((prop = RNA_struct_find_property(op->ptr, "orient_type")) && RNA_property_is_set(op->ptr, prop))) { orient_type_set = RNA_property_enum_get(op->ptr, prop); - if (orient_type_set >= V3D_ORIENT_CUSTOM) { - if (orient_type_set >= V3D_ORIENT_CUSTOM + BIF_countTransformOrientation(C)) { - orient_type_set = V3D_ORIENT_GLOBAL; - } + if (orient_type_set >= V3D_ORIENT_CUSTOM + BIF_countTransformOrientation(C)) { + orient_type_set = V3D_ORIENT_GLOBAL; } /* Change the default orientation to be used when redoing. */ |