Revision: 48313
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=48313
Author:   nazgul
Date:     2012-06-26 15:26:16 +0000 (Tue, 26 Jun 2012)
Log Message:
-----------
Fix for crash of keying screen node in cases when there's no
triangulation generated for tracks setup

Modified Paths:
--------------
    
trunk/blender/source/blender/compositor/operations/COM_KeyingScreenOperation.cpp

Modified: 
trunk/blender/source/blender/compositor/operations/COM_KeyingScreenOperation.cpp
===================================================================
--- 
trunk/blender/source/blender/compositor/operations/COM_KeyingScreenOperation.cpp
    2012-06-26 14:49:49 UTC (rev 48312)
+++ 
trunk/blender/source/blender/compositor/operations/COM_KeyingScreenOperation.cpp
    2012-06-26 15:26:16 UTC (rev 48313)
@@ -218,9 +218,13 @@
                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++) {

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to