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
Notes: blender-bot 2023-02-14 08:10:10 +01:00
Referenced by issue #47565, Crash when adding texture node in compositor
1 changed files with 4 additions and 1 deletions

View File

@ -57,7 +57,10 @@ void TextureBaseOperation::initExecution()
this->m_inputOffset = getInputSocketReader(0);
this->m_inputSize = getInputSocketReader(1);
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);
}
SingleThreadedOperation::initExecution();