Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/paint.c
| Show First 20 Lines • Show All 442 Lines • ▼ Show 20 Lines | PaletteColor *BKE_palette_color_add(Palette *palette) | ||||
| return color; | return color; | ||||
| } | } | ||||
| bool BKE_palette_is_empty(const struct Palette *palette) | bool BKE_palette_is_empty(const struct Palette *palette) | ||||
| { | { | ||||
| return BLI_listbase_is_empty(&palette->colors); | return BLI_listbase_is_empty(&palette->colors); | ||||
| } | } | ||||
| /* are we in vertex paint or weight pain face select mode? */ | /* are we in vertex paint or weight paint face select mode? */ | ||||
| bool BKE_paint_select_face_test(Object *ob) | bool BKE_paint_select_face_test(Object *ob) | ||||
| { | { | ||||
| return ( (ob != NULL) && | return ( (ob != NULL) && | ||||
| (ob->type == OB_MESH) && | (ob->type == OB_MESH) && | ||||
| (ob->data != NULL) && | (ob->data != NULL) && | ||||
| (((Mesh *)ob->data)->editflag & ME_EDIT_PAINT_FACE_SEL) && | (((Mesh *)ob->data)->editflag & ME_EDIT_PAINT_FACE_SEL) && | ||||
| (ob->mode & (OB_MODE_VERTEX_PAINT | OB_MODE_WEIGHT_PAINT | OB_MODE_TEXTURE_PAINT)) | (ob->mode & (OB_MODE_VERTEX_PAINT | OB_MODE_WEIGHT_PAINT | OB_MODE_TEXTURE_PAINT)) | ||||
| ); | ); | ||||
| ▲ Show 20 Lines • Show All 779 Lines • Show Last 20 Lines | |||||