=BPy bugfix=
Little python bugfix, events were never sent to space handlers when using the manipulator. This is necessary for e.g. movable pivot pyconstraints.
This commit is contained in:
@@ -1194,7 +1194,14 @@ static void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
|
||||
if(event==UI_BUT_EVENT) do_butspace(val); /* temporal, view3d deserves own queue? */
|
||||
|
||||
/* we consider manipulator a button, defaulting to leftmouse */
|
||||
if(event==LEFTMOUSE) if(BIF_do_manipulator(sa)) return;
|
||||
if(event==LEFTMOUSE) {
|
||||
/* run any view3d event handler script links */
|
||||
if (event && sa->scriptlink.totscript)
|
||||
if (BPY_do_spacehandlers(sa, event, SPACEHANDLER_VIEW3D_EVENT))
|
||||
return; /* return if event was processed (swallowed) by handler(s) */
|
||||
|
||||
if(BIF_do_manipulator(sa)) return;
|
||||
}
|
||||
|
||||
/* swap mouse buttons based on user preference */
|
||||
if (U.flag & USER_LMOUSESELECT) {
|
||||
|
||||
Reference in New Issue
Block a user