From 3c63eee7b4ee63619375d2ec57cf2d806e46175a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 18 Jun 2014 16:01:51 +1000 Subject: Code cleanup: replace 0 with OB_MODE_OBJECT --- source/blender/editors/util/ed_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/util') diff --git a/source/blender/editors/util/ed_util.c b/source/blender/editors/util/ed_util.c index 178af8c836a..4dfaed98aab 100644 --- a/source/blender/editors/util/ed_util.c +++ b/source/blender/editors/util/ed_util.c @@ -96,8 +96,8 @@ void ED_editors_init(bContext *C) for (ob = bmain->object.first; ob; ob = ob->id.next) { int mode = ob->mode; - if (mode && (mode != OB_MODE_POSE)) { - ob->mode = 0; + if (!ELEM(mode, OB_MODE_OBJECT, OB_MODE_POSE)) { + ob->mode = OB_MODE_OBJECT; data = ob->data; if (ob == obact && !ob->id.lib && !(data && data->lib)) -- cgit v1.2.3