[Bf-taskforce25] Modal Operators + Moving out of view

Joshua Leung aligorith at gmail.com
Sun Nov 30 00:03:33 CET 2008


Hi,

I've just figured it out. It was because the modal handler for the
change-frame operator (which I copied as a simple base to work off) was
adding the handler to region instead of window.

Regards,
Joshua

On Sun, Nov 30, 2008 at 4:41 AM, Ton Roosendaal <ton at blender.org> wrote:

> Hi,
>
> Iff used properly and according design (modal handler should be on
> screen/window level) the events should get properly handled. I suspect
> this is caused by the recently added "modalops" list, which should be
> replaced. Will check it now.
>
> -Ton-
>
> ------------------------------------------------------------------------
> Ton Roosendaal  Blender Foundation   ton at blender.org    www.blender.org
> Blender Institute BV  Entrepotdok 57A  1018AD Amsterdam The Netherlands
>
> On 29 Nov, 2008, at 12:28, Joshua Leung wrote:
>
> > Hi,
> >
> > While working on view panning operator for View2D API, I noticed that
> > if the mouse leaves the current region/area, the events stop being
> > sent to the modal handler, but when the mouse returns, the operator is
> > still running (even if the mousebutton that needed to be held down is
> > no longer held-down). This can be seen with the change-frame thing in
> > the timeline view too.
> >
> > I'm wondering if this is something that was something that wasn't
> > accounted for in the original design, or whether this is something
> > that operators which need this will have to deal with themselves. This
> > affects practically all modal operators which involve mouse movement +
> > holding mousebutton/button(s) down. Perhaps I'm overlooking some
> > aspect of this system again?
> >
> > Regards,
> > Joshua
> > _______________________________________________
> > Bf-taskforce25 mailing list
> > Bf-taskforce25 at blender.org
> > http://lists.blender.org/mailman/listinfo/bf-taskforce25
>
> _______________________________________________
> Bf-taskforce25 mailing list
> Bf-taskforce25 at blender.org
> http://lists.blender.org/mailman/listinfo/bf-taskforce25
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.blender.org/pipermail/bf-taskforce25/attachments/20081130/dbb24396/attachment.htm 


More information about the Bf-taskforce25 mailing list