Alembic: simplified conditional statements
authorSybren A. Stüvel <sybren@stuvel.eu>
Thu, 23 Feb 2017 10:25:42 +0000 (11:25 +0100)
committerSybren A. Stüvel <sybren@stuvel.eu>
Thu, 6 Apr 2017 14:04:31 +0000 (16:04 +0200)
source/blender/alembic/intern/abc_object.h

index 5b7663943c29a4fd20303bfed9e40983a2c1f8a2..cf4372b2f5bcc1418ac13d34b02833bc791a0df8 100644 (file)
@@ -117,15 +117,7 @@ struct ImportSettings {
 template <typename Schema>
 static bool has_animations(Schema &schema, ImportSettings *settings)
 {
-       if (settings->is_sequence) {
-               return true;
-       }
-
-       if (!schema.isConstant()) {
-               return true;
-       }
-
-       return false;
+       return settings->is_sequence || !schema.isConstant();
 }
 
 /* ************************************************************************** */