diff options
author | Sybren A. Stüvel <sybren@stuvel.eu> | 2017-02-23 13:25:42 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2017-04-06 17:04:31 +0300 |
commit | a9504580b35ec305931e5c5cb706c5f929f132fd (patch) | |
tree | 2885b35b5a6814c1736dba62035829ba576a8b9f /source/blender/alembic/intern/abc_object.h | |
parent | 997ff4bdc44eadb58f3e7fe9dd59706053b553c4 (diff) |
Alembic: simplified conditional statements
Diffstat (limited to 'source/blender/alembic/intern/abc_object.h')
-rw-r--r-- | source/blender/alembic/intern/abc_object.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/source/blender/alembic/intern/abc_object.h b/source/blender/alembic/intern/abc_object.h index 5b7663943c2..cf4372b2f5b 100644 --- a/source/blender/alembic/intern/abc_object.h +++ b/source/blender/alembic/intern/abc_object.h @@ -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(); } /* ************************************************************************** */ |