Object Modes: disable mode switching on selection

See T55246
This commit is contained in:
2018-05-29 15:43:53 +02:00
parent 44b99d1052
commit 9d037153f7
3 changed files with 34 additions and 10 deletions

View File

@@ -550,6 +550,12 @@ bool BKE_object_has_mode_data(const struct Object *ob, eObjectMode object_mode)
return false;
}
bool BKE_object_is_mode_compat(const struct Object *ob, eObjectMode object_mode)
{
return ((ob->mode == object_mode) ||
(ob->mode & object_mode) != 0);
}
/**
* Return if the object is visible, as evaluated by depsgraph
*/