Fix T49857: Blender crashes after adding texture node to compositing tree

This commit is contained in:
Sergey Sharybin 2016-11-03 10:25:31 +01:00
parent f800794b97
commit 534f11f71e
Notes: blender-bot 2023-02-14 07:28:08 +01:00
Referenced by issue #50409, texture to compositig cause crash
Referenced by issue #50249, Blender crashes when bringing in a texture node in compositor
Referenced by issue #50233, Blender crash after adding a Texture Node in Compositor
Referenced by issue #50170, Texture Node may be broken
Referenced by issue #50171, Blender 2.78a crashes using in Node Editor [Input] - [Texture]
Referenced by issue #50117, Hard crash when adding texture input node to compositor.
Referenced by issue #50025, Compositor crash
Referenced by issue #49946, Blender crash when you add a node texture in compositing nodes.
Referenced by issue #49953, Adding Input ->Texture node results in a EXCEPTION_ACCESS_VIOLATION
Referenced by issue #49958, Adding a Texture Node in compositor crashes blender
Referenced by issue #49857, blender crashes after adding texture node to compositing tree
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}