diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-02-25 15:52:20 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-02-25 16:04:59 +0300 |
commit | 24d51a05a937269da39c06971b4e4388766baa39 (patch) | |
tree | 480b71d5e1e6c06f443f671aa2e5785acfaa58d3 /source/blender/windowmanager/manipulators/intern/wm_manipulator_group.c | |
parent | 2b158861a3a516dd8f4dac73f8984230f02bc9de (diff) |
Manipulator: rename is_visible -> poll
Rename to WM_manipulator_group_type_poll,
use convention of other poll functions.
Diffstat (limited to 'source/blender/windowmanager/manipulators/intern/wm_manipulator_group.c')
-rw-r--r-- | source/blender/windowmanager/manipulators/intern/wm_manipulator_group.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/windowmanager/manipulators/intern/wm_manipulator_group.c b/source/blender/windowmanager/manipulators/intern/wm_manipulator_group.c index 0e63f3d6ffe..591e76dc37d 100644 --- a/source/blender/windowmanager/manipulators/intern/wm_manipulator_group.c +++ b/source/blender/windowmanager/manipulators/intern/wm_manipulator_group.c @@ -201,10 +201,10 @@ void wm_manipulatorgroup_ensure_initialized(wmManipulatorGroup *mgroup, const bC } } -bool wm_manipulatorgroup_is_visible(const wmManipulatorGroup *mgroup, const bContext *C) +bool WM_manipulator_group_type_poll(const bContext *C, const struct wmManipulatorGroupType *wgt) { /* Check for poll function, if manipulator-group belongs to an operator, also check if the operator is running. */ - return (!mgroup->type->poll || mgroup->type->poll(C, mgroup->type)); + return (!wgt->poll || wgt->poll(C, (wmManipulatorGroupType *)wgt)); } bool wm_manipulatorgroup_is_visible_in_drawstep( |