From da26d4bf3ba762f5efb6bc4f20954e5f418e8ade Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Thu, 8 Apr 2004 12:22:41 +0000 Subject: [PATCH] bug fix 1003 When no object active (after delete) a Panel in IpoWindow drawed wrong. Solved by disabling drawing panels in such situations --- source/blender/src/drawipo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/blender/src/drawipo.c b/source/blender/src/drawipo.c index 3bc342103b0..3d17ecdf29b 100644 --- a/source/blender/src/drawipo.c +++ b/source/blender/src/drawipo.c @@ -1723,7 +1723,8 @@ void drawipospace(ScrArea *sa, void *spacedata) /* it is important to end a view in a transform compatible with buttons */ bwin_scalematrix(sa->win, sipo->blockscale, sipo->blockscale, sipo->blockscale); - ipo_blockhandlers(sa); + /* only draw panels when relevant */ + if(sipo->editipo) ipo_blockhandlers(sa); sa->win_swap= WIN_BACK_OK; }