Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/DerivedMesh.c
| Show First 20 Lines • Show All 1,147 Lines • ▼ Show 20 Lines | |||||
| static DMWeightColorInfo G_dm_wcinfo; | static DMWeightColorInfo G_dm_wcinfo; | ||||
| void vDM_ColorBand_store(const ColorBand *coba, const char alert_color[4]) | void vDM_ColorBand_store(const ColorBand *coba, const char alert_color[4]) | ||||
| { | { | ||||
| G_dm_wcinfo.coba = coba; | G_dm_wcinfo.coba = coba; | ||||
| G_dm_wcinfo.alert_color = alert_color; | G_dm_wcinfo.alert_color = alert_color; | ||||
| } | } | ||||
| const char *get_weight_alert_color() | |||||
| { | |||||
| return G_dm_wcinfo.alert_color; | |||||
| } | |||||
| /* return an array of vertex weight colors, caller must free. | /* return an array of vertex weight colors, caller must free. | ||||
| * | * | ||||
| * note that we could save some memory and allocate RGB only but then we'd need to | * note that we could save some memory and allocate RGB only but then we'd need to | ||||
| * re-arrange the colors when copying to the face since MCol has odd ordering, | * re-arrange the colors when copying to the face since MCol has odd ordering, | ||||
| * so leave this as is - campbell */ | * so leave this as is - campbell */ | ||||
| static void calc_weightpaint_vert_array(Object *ob, DerivedMesh *dm, int const draw_flag, DMWeightColorInfo *dm_wcinfo, | static void calc_weightpaint_vert_array(Object *ob, DerivedMesh *dm, int const draw_flag, DMWeightColorInfo *dm_wcinfo, | ||||
| unsigned char (*r_wtcol_v)[4]) | unsigned char (*r_wtcol_v)[4]) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 2,165 Lines • Show Last 20 Lines | |||||