[Bf-blender-cvs] [3c045923a29] master: Cleanup: Remove redundant if-condition

Germano Cavalcante noreply at git.blender.org
Wed Oct 7 20:38:30 CEST 2020


Commit: 3c045923a296b6fc375ef08949db2f7ed490b07d
Author: Germano Cavalcante
Date:   Wed Oct 7 15:38:20 2020 -0300
Branches: master
https://developer.blender.org/rB3c045923a296b6fc375ef08949db2f7ed490b07d

Cleanup: Remove redundant if-condition

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

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

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

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. */



More information about the Bf-blender-cvs mailing list