[Bf-blender-cvs] [684b3ef] wiggly-widgets: Fix old graph editor crash

Julian Eisel noreply at git.blender.org
Wed Sep 16 19:21:33 CEST 2015


Commit: 684b3ef857084e28dc4b48ada2bf91453f374a8e
Author: Julian Eisel
Date:   Wed Sep 16 16:54:07 2015 +0200
Branches: wiggly-widgets
https://developer.blender.org/rB684b3ef857084e28dc4b48ada2bf91453f374a8e

Fix old graph editor crash

===================================================================

M	source/blender/editors/space_graph/graph_edit.c

===================================================================

diff --git a/source/blender/editors/space_graph/graph_edit.c b/source/blender/editors/space_graph/graph_edit.c
index 19fcbd6..0d43efd 100644
--- a/source/blender/editors/space_graph/graph_edit.c
+++ b/source/blender/editors/space_graph/graph_edit.c
@@ -2507,7 +2507,8 @@ static int graph_widget_backdrop_transform_poll(bContext *C)
 	SpaceIpo *sipo = CTX_wm_space_graph(C);
 	ARegion *ar = CTX_wm_region(C);
 
-	return ((ar->type->regionid == RGN_TYPE_WINDOW) &&
+	return ((sipo != NULL) &&
+	        (ar->type->regionid == RGN_TYPE_WINDOW) &&
 	        (sipo->flag & SIPO_DRAW_BACKDROP) &&
 	        (sipo->backdrop_camera));
 }




More information about the Bf-blender-cvs mailing list