[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [46665] branches/soc-2011-tomato/source/ blender/editors/space_clip/clip_draw.c: Tomato: fixed crash when using manual calibration without GP strokes done

Sergey Sharybin sergey.vfx at gmail.com
Tue May 15 16:01:02 CEST 2012


Revision: 46665
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=46665
Author:   nazgul
Date:     2012-05-15 14:01:02 +0000 (Tue, 15 May 2012)
Log Message:
-----------
Tomato: fixed crash when using manual calibration without GP strokes done

Modified Paths:
--------------
    branches/soc-2011-tomato/source/blender/editors/space_clip/clip_draw.c

Modified: branches/soc-2011-tomato/source/blender/editors/space_clip/clip_draw.c
===================================================================
--- branches/soc-2011-tomato/source/blender/editors/space_clip/clip_draw.c	2012-05-15 13:46:50 UTC (rev 46664)
+++ branches/soc-2011-tomato/source/blender/editors/space_clip/clip_draw.c	2012-05-15 14:01:02 UTC (rev 46665)
@@ -1323,8 +1323,7 @@
 		gpd = clip->gpd;
 	}
 
-
-	if (sc->flag & SC_MANUAL_CALIBRATION) {
+	if (sc->flag & SC_MANUAL_CALIBRATION && gpd) {
 		bGPDlayer *layer = gpd->layers.first;
 
 		while (layer) {




More information about the Bf-blender-cvs mailing list