diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-11-03 12:25:31 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-11-03 12:25:31 +0300 |
commit | 534f11f71ee71b87a17ceddf56da0bcfa2cab352 (patch) | |
tree | 3b743e74d6d31101d0c5ef63eee389faa7ba5bcc /source | |
parent | f800794b97f1d3c0e596afeb15172b0288396240 (diff) |
Fix T49857: Blender crashes after adding texture node to compositing tree
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/compositor/operations/COM_TextureOperation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/compositor/operations/COM_TextureOperation.cpp b/source/blender/compositor/operations/COM_TextureOperation.cpp index bba5c8702b8..6bfd8ae3888 100644 --- a/source/blender/compositor/operations/COM_TextureOperation.cpp +++ b/source/blender/compositor/operations/COM_TextureOperation.cpp @@ -118,7 +118,7 @@ void TextureBaseOperation::executePixelSampled(float output[4], float x, float y * interpolaiton and (b) in such configuration multitex() sinply floor's the value * which often produces artifacts. */ - if ((m_texture->imaflag & TEX_INTERPOL) == 0) { + if (m_texture != NULL && (m_texture->imaflag & TEX_INTERPOL) == 0) { u += 0.5f / cx; v += 0.5f / cy; } |