Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/gpencil/drawgpencil.c
| Show First 20 Lines • Show All 1,111 Lines • ▼ Show 20 Lines | |||||
| /* draw interpolate strokes (used only while operator is running) */ | /* draw interpolate strokes (used only while operator is running) */ | ||||
| void ED_gp_draw_interpolation(const bContext *C, tGPDinterpolate *tgpi, const int type) | void ED_gp_draw_interpolation(const bContext *C, tGPDinterpolate *tgpi, const int type) | ||||
| { | { | ||||
| tGPDdraw tgpw; | tGPDdraw tgpw; | ||||
| ARegion *ar = CTX_wm_region(C); | ARegion *ar = CTX_wm_region(C); | ||||
| RegionView3D *rv3d = ar->regiondata; | RegionView3D *rv3d = ar->regiondata; | ||||
| tGPDinterpolate_layer *tgpil; | tGPDinterpolate_layer *tgpil; | ||||
| Object *obact = CTX_data_active_object(C); | Object *obact = CTX_data_active_object(C); | ||||
| Depsgraph *depsgraph = CTX_data_depsgraph(C); | /* Drawing code is expected to run with fully evaluated depsgraph. */ | ||||
| Depsgraph *depsgraph = CTX_data_expect_evaluated_depsgraph(C); | |||||
| float color[4]; | float color[4]; | ||||
| UI_GetThemeColor3fv(TH_GP_VERTEX_SELECT, color); | UI_GetThemeColor3fv(TH_GP_VERTEX_SELECT, color); | ||||
| color[3] = 0.6f; | color[3] = 0.6f; | ||||
| int dflag = 0; | int dflag = 0; | ||||
| /* if 3d stuff, enable flags */ | /* if 3d stuff, enable flags */ | ||||
| if (type == REGION_DRAW_POST_VIEW) { | if (type == REGION_DRAW_POST_VIEW) { | ||||
| ▲ Show 20 Lines • Show All 90 Lines • Show Last 20 Lines | |||||