ソースを参照

Remove redundant statement in if

- closes https://github.com/assimp/assimp/issues/3180
Kim Kulling 4 年 前
コミット
e792455d66
1 ファイル変更1 行追加1 行削除
  1. 1 1
      code/AssetLib/IFC/IFCGeometry.cpp

+ 1 - 1
code/AssetLib/IFC/IFCGeometry.cpp

@@ -656,7 +656,7 @@ void ProcessExtrudedArea(const Schema_2x3::IfcExtrudedAreaSolid& solid, const Te
         }
         }
     }
     }
 
 
-    if( openings && ((sides_with_openings == 1 && sides_with_openings) || (sides_with_v_openings == 2 && sides_with_v_openings)) ) {
+    if( openings && (sides_with_openings == 1 || sides_with_v_openings == 2 ) ) {
         IFCImporter::LogWarn("failed to resolve all openings, presumably their topology is not supported by Assimp");
         IFCImporter::LogWarn("failed to resolve all openings, presumably their topology is not supported by Assimp");
     }
     }