Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorJeroen Bakker <jeroen@blender.org>2021-03-26 12:40:27 +0300
committerJeroen Bakker <jeroen@blender.org>2021-03-26 13:27:28 +0300
commite867f40611deea6cb100dcf52eebcc5df23166d9 (patch)
tree0f4132d4c50163cbb26d3ec0872330e64ce1c10d /source
parentfb6c29f59c13be7a59314eaa2487fb50648a6db2 (diff)
Cleanup: Replaced unneeded branch with assert.
Diffstat (limited to 'source')
-rw-r--r--source/blender/compositor/intern/COM_CompositorContext.cc9
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;
}