diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-06-26 19:26:16 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-06-26 19:26:16 +0400 |
commit | de00723049b9cd03250e335385e0c9dfa4a6c835 (patch) | |
tree | 3c6c5eee2fb9ee0a0e50d8ffeddb15084d491d84 /source/blender/compositor/operations/COM_KeyingScreenOperation.cpp | |
parent | e32c4677137b4915115de91306d2376d414dc326 (diff) |
Fix for crash of keying screen node in cases when there's no
triangulation generated for tracks setup
Diffstat (limited to 'source/blender/compositor/operations/COM_KeyingScreenOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_KeyingScreenOperation.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/compositor/operations/COM_KeyingScreenOperation.cpp b/source/blender/compositor/operations/COM_KeyingScreenOperation.cpp index 0341fe9ddac..53572162b9e 100644 --- a/source/blender/compositor/operations/COM_KeyingScreenOperation.cpp +++ b/source/blender/compositor/operations/COM_KeyingScreenOperation.cpp @@ -218,9 +218,13 @@ void *KeyingScreenOperation::initializeTileData(rcti *rect, MemoryBuffer **memor unlockMutex(); } + triangulation = this->m_cachedTriangulation; + + if (!triangulation) + return NULL; + BLI_init_rctf(&rect_float, rect->xmin, rect->xmax, rect->ymin, rect->ymax); - triangulation = this->m_cachedTriangulation; tile_data = (TileData *) MEM_callocN(sizeof(TileData), "keying screen tile data"); for (i = 0; i < triangulation->triangles_total; i++) { |