Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <julian@blender.org>2020-10-03 18:20:05 +0300
committerJulian Eisel <julian@blender.org>2020-10-03 19:34:23 +0300
commiteacaebea837a652a4b68b515ef82ecee2e58477c (patch)
tree855c187010008df279e0d4c4b472475ce78ec73e
parent21fc4ae206920a072168886074f45ea6302ffe30 (diff)
Cleanup: Remove redundant View2D operator poll check
The poll would already be executed as operator callback, this check was redundant. Also see previous commit.
-rw-r--r--source/blender/editors/interface/view2d_ops.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/source/blender/editors/interface/view2d_ops.c b/source/blender/editors/interface/view2d_ops.c
index 060e4354b70..959013906ea 100644
--- a/source/blender/editors/interface/view2d_ops.c
+++ b/source/blender/editors/interface/view2d_ops.c
@@ -987,11 +987,6 @@ static int view_zoomin_exec(bContext *C, wmOperator *op)
{
bool do_zoom_xy[2];
- /* check that there's an active region, as View2D data resides there */
- if (!view_zoom_poll(C)) {
- return OPERATOR_PASS_THROUGH;
- }
-
view_zoom_axis_lock_defaults(C, do_zoom_xy);
/* set RNA-Props - zooming in by uniform factor */
@@ -1053,11 +1048,6 @@ static int view_zoomout_exec(bContext *C, wmOperator *op)
{
bool do_zoom_xy[2];
- /* check that there's an active region, as View2D data resides there */
- if (!view_zoom_poll(C)) {
- return OPERATOR_PASS_THROUGH;
- }
-
view_zoom_axis_lock_defaults(C, do_zoom_xy);
/* set RNA-Props - zooming in by uniform factor */