Fix for crash in special cases when mixing translate node with other
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 12 Mar 2013 14:04:58 +0000 (14:04 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 12 Mar 2013 14:04:58 +0000 (14:04 +0000)
Issue was caused by calling ensureDelta from initexecution, which will
read pixels from an input and it could read from non-initialized
operations.

Issue was originally introduced in svn rev54235 which added ensureDelta
to translate's initExecution, but since rev54349 this call seems to be
doing nothing.

source/blender/compositor/operations/COM_TranslateOperation.cpp

index 9f6924e..e2582c3 100644 (file)
@@ -42,8 +42,6 @@ void TranslateOperation::initExecution()
        this->m_inputOperation = this->getInputSocketReader(0);
        this->m_inputXOperation = this->getInputSocketReader(1);
        this->m_inputYOperation = this->getInputSocketReader(2);
-
-       ensureDelta();
 }
 
 void TranslateOperation::deinitExecution()