Fix T47565: Crash when adding texture node in compositor

This commit is contained in:
Sergey Sharybin 2016-02-25 20:01:31 +01:00
parent ba98b681e7
commit b50e880e49

@ -57,7 +57,10 @@ void TextureBaseOperation::initExecution()
this->m_inputOffset = getInputSocketReader(0); this->m_inputOffset = getInputSocketReader(0);
this->m_inputSize = getInputSocketReader(1); this->m_inputSize = getInputSocketReader(1);
this->m_pool = BKE_image_pool_new(); this->m_pool = BKE_image_pool_new();
if (this->m_texture->nodetree && this->m_texture->use_nodes) { if (this->m_texture != NULL &&
this->m_texture->nodetree != NULL &&
this->m_texture->use_nodes)
{
ntreeTexBeginExecTree(this->m_texture->nodetree); ntreeTexBeginExecTree(this->m_texture->nodetree);
} }
SingleThreadedOperation::initExecution(); SingleThreadedOperation::initExecution();