Cleanup: Replaced unneeded branch with assert.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user