Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/object.c
| Show First 20 Lines • Show All 556 Lines • ▼ Show 20 Lines | if (ob->type == OB_MESH) { | ||||
| return ((ob->mode & OB_MODE_WEIGHT_PAINT) && | return ((ob->mode & OB_MODE_WEIGHT_PAINT) && | ||||
| (me->edit_btmesh == NULL) && | (me->edit_btmesh == NULL) && | ||||
| (ME_EDIT_PAINT_SEL_MODE(me) == SCE_SELECT_VERTEX)); | (ME_EDIT_PAINT_SEL_MODE(me) == SCE_SELECT_VERTEX)); | ||||
| } | } | ||||
| return false; | return false; | ||||
| } | } | ||||
| /** | |||||
| * Return if the object is visible, as evaluated by depsgraph | |||||
| * Keep in sync with rna_object.c (object.is_visible). | |||||
| */ | |||||
| bool BKE_object_is_visible(Object *ob) | |||||
| { | |||||
| return (ob->base_flag & BASE_VISIBLED) != 0; | |||||
| } | |||||
| bool BKE_object_exists_check(Object *obtest) | bool BKE_object_exists_check(Object *obtest) | ||||
| { | { | ||||
| Object *ob; | Object *ob; | ||||
| if (obtest == NULL) return false; | if (obtest == NULL) return false; | ||||
| ob = G.main->object.first; | ob = G.main->object.first; | ||||
| while (ob) { | while (ob) { | ||||
| ▲ Show 20 Lines • Show All 3,143 Lines • Show Last 20 Lines | |||||