diff options
Diffstat (limited to 'source/blender/editors/object/object_edit.c')
-rw-r--r-- | source/blender/editors/object/object_edit.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/source/blender/editors/object/object_edit.c b/source/blender/editors/object/object_edit.c index 283aaec85ef..0ea9d24a016 100644 --- a/source/blender/editors/object/object_edit.c +++ b/source/blender/editors/object/object_edit.c @@ -156,9 +156,7 @@ static bool object_hide_poll(bContext *C) if (CTX_wm_space_outliner(C) != NULL) { return ED_outliner_collections_editor_poll(C); } - else { - return ED_operator_view3d_active(C); - } + return ED_operator_view3d_active(C); } static int object_hide_view_clear_exec(bContext *C, wmOperator *op) @@ -1634,15 +1632,14 @@ static bool move_to_collection_poll(bContext *C) if (CTX_wm_space_outliner(C) != NULL) { return ED_outliner_collections_editor_poll(C); } - else { - View3D *v3d = CTX_wm_view3d(C); - if (v3d && v3d->localvd) { - return false; - } + View3D *v3d = CTX_wm_view3d(C); - return ED_operator_objectmode(C); + if (v3d && v3d->localvd) { + return false; } + + return ED_operator_objectmode(C); } static int move_to_collection_exec(bContext *C, wmOperator *op) |