2.5 - Time operations to Animation Module
Moved time_ops.c contents to anim_ops.c, as the operators there are applicable to all other Animation Editors too. anim_ops.c will therefore contain all operators which will apply to all Animation Editors (i.e. change frame, frames/seconds display toggle, and soon Preview Range tools). As such, added new global 'Animation' keymap like for View2D and Markers, which will ensure that these tools can be accessed in an uniform way across editors. Note that the order that these things are added is important, as the Animation ones will often 'steal' events from the View2D and Markers ones if placed before the others. To prevent that, we'd need to be able to set boundboxes here...
This commit is contained in:
@@ -1097,7 +1097,7 @@ static int scroller_activate_invoke(bContext *C, wmOperator *op, wmEvent *event)
|
||||
/* firstly, check context to see if mouse is actually in region */
|
||||
// XXX isn't this the job of poll() callbacks which can't check events, but only context?
|
||||
if (ar == NULL)
|
||||
return OPERATOR_CANCELLED;
|
||||
return OPERATOR_PASS_THROUGH;//OPERATOR_CANCELLED;
|
||||
else
|
||||
v2d= &ar->v2d;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user