Commit: 07da01ddb226be37928b670c836bef323f4a2b8a
Author: Nicholas Bishop
Date:   Tue Aug 5 10:57:54 2014 -0400
Branches: master
https://developer.blender.org/rB07da01ddb226be37928b670c836bef323f4a2b8a

Replace explicit object type check with already-existing macro

===================================================================

M       source/blender/editors/object/object_edit.c

===================================================================

diff --git a/source/blender/editors/object/object_edit.c 
b/source/blender/editors/object/object_edit.c
index 3b60bbb..9395612 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)

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to