Commit: 1c9985e01516d0b0057313795d9646f7223524e0
Author: Sergey Sharybin
Date:   Wed Apr 29 19:30:26 2015 +0500
Branches: gooseberry
https://developer.blender.org/rB1c9985e01516d0b0057313795d9646f7223524e0

Gooseberry: Fix crash of backdrop widget in graph space

This fix should actually happen in wiggly-widgets branch but it's now
has some commits which are not in gooseberry and merging them night
be not really safe.

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

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 f5b130e..74466a7 100644
--- a/source/blender/editors/space_graph/graph_edit.c
+++ b/source/blender/editors/space_graph/graph_edit.c
@@ -2500,7 +2500,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));
 }

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

Reply via email to