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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user