Fix for part of bug #8376: shift+MMB dragging the view didn't work in

the node editor like other windows. Is already used for backdrop, but
if that isn't enabled it can still do it.
This commit is contained in:
2008-02-27 14:26:47 +00:00
parent cbf278246f
commit 9620bccf5b

View File

@@ -2299,7 +2299,8 @@ void winqreadnodespace(ScrArea *sa, void *spacedata, BWinEvent *evt)
break;
case MIDDLEMOUSE:
if (G.qual==LR_SHIFTKEY) {
if((snode->flag & SNODE_BACKDRAW) && (snode->treetype==NTREE_COMPOSIT)
&& (G.qual==LR_SHIFTKEY)) {
snode_bg_viewmove(snode);
} else {
view2dmove(event);