=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:
Joseph Eagar
2008-05-11 02:28:01 +00:00
parent 5122cae732
commit 33568c3f24

View File

@@ -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) {