diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2014-08-05 18:57:54 +0400 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2014-08-05 18:57:54 +0400 |
commit | 07da01ddb226be37928b670c836bef323f4a2b8a (patch) | |
tree | 3890624e1d27b5eaf4f33781c45dc381adb2c1a6 /source/blender/editors/object/object_edit.c | |
parent | f81b6e57cb1b0ed464f2cc4f73bfe93279d6b962 (diff) |
Replace explicit object type check with already-existing macro
Diffstat (limited to 'source/blender/editors/object/object_edit.c')
-rw-r--r-- | source/blender/editors/object/object_edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_edit.c b/source/blender/editors/object/object_edit.c index 3b60bbbb37e..93956128b84 100644 --- a/source/blender/editors/object/object_edit.c +++ b/source/blender/editors/object/object_edit.c @@ -596,7 +596,7 @@ static int editmode_toggle_poll(bContext *C) if ((ob->restrictflag & OB_RESTRICT_VIEW) && !(ob->mode & OB_MODE_EDIT)) return 0; - return (ELEM(ob->type, OB_MESH, OB_ARMATURE, OB_FONT, OB_MBALL, OB_LATTICE, OB_SURF, OB_CURVE)); + return OB_TYPE_SUPPORT_EDITMODE(ob->type); } void OBJECT_OT_editmode_toggle(wmOperatorType *ot) |