Code cleanup: replace 0 with OB_MODE_OBJECT

This commit is contained in:
2014-06-18 16:01:51 +10:00
parent b16bf6c3d4
commit 3c63eee7b4
4 changed files with 5 additions and 5 deletions

View File

@@ -166,7 +166,7 @@ int ED_operator_objectmode(bContext *C)
return 0;
/* add a check for ob->mode too? */
if (obact && obact->mode)
if (obact && (obact->mode != OB_MODE_OBJECT))
return 0;
return 1;