Fix objectmode is/is not
Cleanup
Merge pull request #857 from sklam/fix_objmode_is_not

Fix objectmode is/is not