mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Cleanup: Remove redundant View2D operator poll check
The poll would already be executed as operator callback, this check was redundant. Also see previous commit.
This commit is contained in:
parent
21fc4ae206
commit
eacaebea83
1 changed files with 0 additions and 10 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue