Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-06-18 10:01:51 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-06-18 10:01:51 +0400
commit3c63eee7b4ee63619375d2ec57cf2d806e46175a (patch)
tree0f5e08762cc37824c1f3a5094b480ffacae8f45f /source/blender/editors/util
parentb16bf6c3d4204ba5399f9854f7888630e984fe59 (diff)
Code cleanup: replace 0 with OB_MODE_OBJECT
Diffstat (limited to 'source/blender/editors/util')
-rw-r--r--source/blender/editors/util/ed_util.c4
1 files changed, 2 insertions, 2 deletions
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))