diff options
author | Ton Roosendaal <ton@blender.org> | 2003-08-17 16:56:41 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2003-08-17 16:56:41 +0400 |
commit | 29edbab2c9c045b375ca1f4f8f841975204125a5 (patch) | |
tree | b11751a607f4839ffdb5ccdc1a1fe3ba120125f5 | |
parent | 17eac8a60c48569c10b608e77b1451464cc45775 (diff) |
- fix bug #481
when adding a new scene in a Screen without buttons window, a pointer
was referenced which is zero
-rw-r--r-- | source/blender/src/previewrender.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/src/previewrender.c b/source/blender/src/previewrender.c index 174022bb4c0..9fcfce0ab5c 100644 --- a/source/blender/src/previewrender.c +++ b/source/blender/src/previewrender.c @@ -315,8 +315,11 @@ static void draw_tex_crop(Tex *tex) void BIF_preview_changed(SpaceButs *sbuts) { - sbuts->cury= 0; - addafterqueue(sbuts->area->win, RENDERPREVIEW, 1); + /* can be called when nu buttonswindow visible */ + if(sbuts) { + sbuts->cury= 0; + addafterqueue(sbuts->area->win, RENDERPREVIEW, 1); + } } void BIF_previewdraw(SpaceButs *sbuts) |