Blender Git Loki
Git Commits -> Revision 21fc4ae
Revision 21fc4ae by Julian Eisel (master) October 3, 2020, 16:34 (GMT) |
Cleanup: Remove duplicated View2D zoom polling logic `view_zoomdrag_init()` would perform a number of sanity checks that `view_zoom_poll()` already executed. The design of operators forsees that (non-expensive) context sanity checks are done by the `poll()` callbacks, and the execution callbacks can then just assume that happened. No reason to be overly pedantic, we don't do that elsewhere either. Note that this code is from the earliest days of an operator design. So it's not surprising that it wasn't using the design "properly". |
Commit Details:
Full Hash: 21fc4ae206920a072168886074f45ea6302ffe30
Parent Commit: cb6234f
Lines Changed: +19, -42
1 Modified Path:
/source/blender/editors/interface/view2d_ops.c (+19, -42) (Diff)