Fix: buttons previewrender was re-rendering on scrolling a lot, this due

to rounding noise when trying to detect if previewsize changed. Made it
use a threshold now.

Fix: SHIFT+P in editmode is still push/pull, outside editmode it'll do
the preview render. (Note; editmode changes are not updated anyway!)
This commit is contained in:
2006-01-30 19:39:05 +00:00
parent 1c3ece9915
commit ed81ff405f
3 changed files with 13 additions and 44 deletions

View File

@@ -1591,12 +1591,14 @@ static void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
else if(G.qual==LR_CTRLKEY || G.qual==(LR_SHIFTKEY|LR_CTRLKEY))
make_parent();
else if(G.qual==LR_SHIFTKEY) {
//initTransform(TFM_PUSHPULL, CTX_NONE);
//Transform();
//Ton: is this where is should go?
toggle_blockhandler(curarea, VIEW3D_HANDLER_PREVIEW, 0);
doredraw= 1;
if(G.obedit) {
initTransform(TFM_PUSHPULL, CTX_NONE);
Transform();
}
else {
toggle_blockhandler(curarea, VIEW3D_HANDLER_PREVIEW, 0);
doredraw= 1;
}
}
else if(G.qual==LR_ALTKEY)
clear_parent();