diff options
author | Jeroen Bakker <jeroen@blender.org> | 2021-03-26 12:40:27 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-03-26 13:27:28 +0300 |
commit | e867f40611deea6cb100dcf52eebcc5df23166d9 (patch) | |
tree | 0f4132d4c50163cbb26d3ec0872330e64ce1c10d /source/blender/compositor/intern | |
parent | fb6c29f59c13be7a59314eaa2487fb50648a6db2 (diff) |
Cleanup: Replaced unneeded branch with assert.
Diffstat (limited to 'source/blender/compositor/intern')
-rw-r--r-- | source/blender/compositor/intern/COM_CompositorContext.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/source/blender/compositor/intern/COM_CompositorContext.cc b/source/blender/compositor/intern/COM_CompositorContext.cc index e2447fb5c13..a746ccbc09f 100644 --- a/source/blender/compositor/intern/COM_CompositorContext.cc +++ b/source/blender/compositor/intern/COM_CompositorContext.cc @@ -20,6 +20,8 @@ #include "COM_defines.h" #include <cstdio> +#include "BLI_assert.h" + CompositorContext::CompositorContext() { this->m_scene = nullptr; @@ -33,9 +35,6 @@ CompositorContext::CompositorContext() int CompositorContext::getFramenumber() const { - if (this->m_rd) { - return this->m_rd->cfra; - } - - return -1; /* this should never happen */ + BLI_assert(m_rd); + return m_rd->cfra; } |