Blender Git Loki

Git Commits -> Revision 3a1cf83

Revision 3a1cf83 by Julian Eisel (master)
October 3, 2020, 16:34 (GMT)
Fix issues with calling View2D zoom operators in an `EXEC` context

Multiple related issues:
* `view_zoomdrag_exec()` required `view_zoomdrag_init()` to be called first to
set up data. Can now easily be done in the `_exec()` function as well though.
* Because of that the operators could not be called in an `EXEC_` context (e.g.
`EXEC_REGION_WIN`).
* With "Zoom to Mouse Position" enabled, zooming from a menu or script would
zoom to the mouse position. That should only happen if the operators are
called directly in the editor.

Commit Details:

Full Hash: 3a1cf838ca09bdc58eeab67ced640314faf49eae
Parent Commit: eacaebe
Lines Changed: +33, -18

2 Modified Paths:

/release/scripts/startup/bl_ui/space_node.py (+4, -2) (Diff)
/source/blender/editors/interface/view2d_ops.c (+29, -16) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021