Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/gpencil/gpencil_add_monkey.c
| Show First 20 Lines • Show All 823 Lines • ▼ Show 20 Lines | |||||
| /* ***************************************************************** */ | /* ***************************************************************** */ | ||||
| /* Monkey API */ | /* Monkey API */ | ||||
| /* add a 2D Suzanne (original model created by Matias Mendiola) */ | /* add a 2D Suzanne (original model created by Matias Mendiola) */ | ||||
| void ED_gpencil_create_monkey(bContext *C, Object *ob, float mat[4][4]) | void ED_gpencil_create_monkey(bContext *C, Object *ob, float mat[4][4]) | ||||
| { | { | ||||
| Main *bmain = CTX_data_main(C); | Main *bmain = CTX_data_main(C); | ||||
| Depsgraph *depsgraph = CTX_data_depsgraph(C); | Scene *scene = CTX_data_scene(C); | ||||
| int cfra_eval = (int)DEG_get_ctime(depsgraph); | int cfra_eval = CFRA; | ||||
| bGPdata *gpd = (bGPdata *)ob->data; | bGPdata *gpd = (bGPdata *)ob->data; | ||||
| bGPDstroke *gps; | bGPDstroke *gps; | ||||
| /* create colors */ | /* create colors */ | ||||
| int color_Black = gpencil_monkey_color(bmain, ob, &gp_monkey_pct_black, true, false); | int color_Black = gpencil_monkey_color(bmain, ob, &gp_monkey_pct_black, true, false); | ||||
| int color_Skin = gpencil_monkey_color(bmain, ob, &gp_monkey_pct_skin, false, true); | int color_Skin = gpencil_monkey_color(bmain, ob, &gp_monkey_pct_skin, false, true); | ||||
| int color_Skin_Light = gpencil_monkey_color(bmain, ob, &gp_monkey_pct_skin_light, true, false); | int color_Skin_Light = gpencil_monkey_color(bmain, ob, &gp_monkey_pct_skin_light, true, false); | ||||
| int color_Skin_Shadow = gpencil_monkey_color(bmain, ob, &gp_monkey_pct_skin_shadow, true, false); | int color_Skin_Shadow = gpencil_monkey_color(bmain, ob, &gp_monkey_pct_skin_shadow, true, false); | ||||
| ▲ Show 20 Lines • Show All 107 Lines • Show Last 20 Lines | |||||