From 2a3797b1091d65dac352ebb37f4ec58dde703397 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 18 May 2020 17:04:48 +1000 Subject: Cleanup: remove NULL checks from object mode switching take #2 Re-apply changes from 54ea3562406c633dc69f59697cca3cd1cded3bcd, with a poll function that uses the same active object as the operator, matching other mode switching functions. --- source/blender/editors/include/ED_screen.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/editors/include') diff --git a/source/blender/editors/include/ED_screen.h b/source/blender/editors/include/ED_screen.h index 43f3a578bfe..bc6a4b23609 100644 --- a/source/blender/editors/include/ED_screen.h +++ b/source/blender/editors/include/ED_screen.h @@ -347,6 +347,7 @@ bool ED_operator_info_active(struct bContext *C); bool ED_operator_console_active(struct bContext *C); bool ED_operator_object_active(struct bContext *C); +bool ED_operator_object_active_editable_ex(struct bContext *C, const Object *ob); bool ED_operator_object_active_editable(struct bContext *C); bool ED_operator_object_active_editable_mesh(struct bContext *C); bool ED_operator_object_active_editable_font(struct bContext *C); -- cgit v1.2.3