Alembic: simplified conditional statements
[blender.git] / 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();
 }
 
 /* ************************************************************************** */