[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [42460] trunk/blender/source/blender/ editors/space_clip/clip_graph_draw.c: Fixed crash when movie clip curves region is opened and clip is getting unlinked
Sergey Sharybin
sergey.vfx at gmail.com
Tue Dec 6 13:04:43 CET 2011
Revision: 42460
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=42460
Author: nazgul
Date: 2011-12-06 12:04:39 +0000 (Tue, 06 Dec 2011)
Log Message:
-----------
Fixed crash when movie clip curves region is opened and clip is getting unlinked
Modified Paths:
--------------
trunk/blender/source/blender/editors/space_clip/clip_graph_draw.c
Modified: trunk/blender/source/blender/editors/space_clip/clip_graph_draw.c
===================================================================
--- trunk/blender/source/blender/editors/space_clip/clip_graph_draw.c 2011-12-06 09:28:25 UTC (rev 42459)
+++ trunk/blender/source/blender/editors/space_clip/clip_graph_draw.c 2011-12-06 12:04:39 UTC (rev 42460)
@@ -235,6 +235,7 @@
void clip_draw_graph(SpaceClip *sc, ARegion *ar, Scene *scene)
{
+ MovieClip *clip= ED_space_clip(sc);
View2D *v2d= &ar->v2d;
View2DGrid *grid;
short unitx= V2D_UNIT_FRAMESCALE, unity= V2D_UNIT_VALUES;
@@ -244,11 +245,13 @@
UI_view2d_grid_draw(v2d, grid, V2D_GRIDLINES_ALL);
UI_view2d_grid_free(grid);
- if(sc->flag&SC_SHOW_GRAPH_TRACKS)
- draw_tracks_curves(v2d, sc);
+ if(clip) {
+ if(sc->flag&SC_SHOW_GRAPH_TRACKS)
+ draw_tracks_curves(v2d, sc);
- if(sc->flag&SC_SHOW_GRAPH_FRAMES)
- draw_frame_curves(sc);
+ if(sc->flag&SC_SHOW_GRAPH_FRAMES)
+ draw_frame_curves(sc);
+ }
/* current frame */
draw_graph_cfra(sc, ar, scene);
More information about the Bf-blender-cvs
mailing list