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 22:51:50 +0300
committerJulian Eisel <julian@blender.org>2020-10-03 22:51:50 +0300
commit806edf11ba7f3bfa5b325419096d883299fc3571 (patch)
tree0652ea7b5e17bb973f5e3afe5ed46aa5946ceef0
parent9668fc582ccb0a8030e4820c00f2d3888d22b7e6 (diff)
Revert part of previous commit
The change to the `poll()` callback was actually incorrect. But also reduandant, since the function is actually already executed in the operator.
-rw-r--r--source/blender/editors/interface/view2d_ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/view2d_ops.c b/source/blender/editors/interface/view2d_ops.c
index 2339ba72a52..95b543e124d 100644
--- a/source/blender/editors/interface/view2d_ops.c
+++ b/source/blender/editors/interface/view2d_ops.c
@@ -1666,7 +1666,7 @@ static void VIEW2D_OT_ndof(wmOperatorType *ot)
/* api callbacks */
ot->invoke = view2d_ndof_invoke;
- ot->poll = view_zoom_poll;
+ ot->poll = view2d_poll;
/* flags */
ot->flag = OPTYPE_LOCK_BYPASS;