Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/gpencil/gpencil_primitive.c
| Show First 20 Lines • Show All 1,108 Lines • ▼ Show 20 Lines | static void gpencil_primitive_init(bContext *C, wmOperator *op) | ||||
| /* set current scene and window info */ | /* set current scene and window info */ | ||||
| tgpi->bmain = CTX_data_main(C); | tgpi->bmain = CTX_data_main(C); | ||||
| tgpi->scene = scene; | tgpi->scene = scene; | ||||
| tgpi->ob = CTX_data_active_object(C); | tgpi->ob = CTX_data_active_object(C); | ||||
| tgpi->sa = CTX_wm_area(C); | tgpi->sa = CTX_wm_area(C); | ||||
| tgpi->ar = CTX_wm_region(C); | tgpi->ar = CTX_wm_region(C); | ||||
| tgpi->rv3d = tgpi->ar->regiondata; | tgpi->rv3d = tgpi->ar->regiondata; | ||||
| tgpi->v3d = tgpi->sa->spacedata.first; | tgpi->v3d = tgpi->sa->spacedata.first; | ||||
| tgpi->depsgraph = CTX_data_depsgraph(C); | tgpi->depsgraph = CTX_data_ensure_evaluated_depsgraph(C); | ||||
| tgpi->win = CTX_wm_window(C); | tgpi->win = CTX_wm_window(C); | ||||
| /* save original type */ | /* save original type */ | ||||
| tgpi->orign_type = RNA_enum_get(op->ptr, "type"); | tgpi->orign_type = RNA_enum_get(op->ptr, "type"); | ||||
| /* set current frame number */ | /* set current frame number */ | ||||
| tgpi->cframe = cfra_eval; | tgpi->cframe = cfra_eval; | ||||
| ▲ Show 20 Lines • Show All 703 Lines • Show Last 20 Lines | |||||