Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/gpencil/gpencil_primitive.c
| Show First 20 Lines • Show All 1,310 Lines • ▼ Show 20 Lines | static void gpencil_primitive_interaction_end(bContext *C, | ||||
| bGPDframe *gpf; | bGPDframe *gpf; | ||||
| bGPDstroke *gps; | bGPDstroke *gps; | ||||
| ToolSettings *ts = tgpi->scene->toolsettings; | ToolSettings *ts = tgpi->scene->toolsettings; | ||||
| Brush *brush = tgpi->brush; | Brush *brush = tgpi->brush; | ||||
| BrushGpencilSettings *brush_settings = brush->gpencil_settings; | BrushGpencilSettings *brush_settings = brush->gpencil_settings; | ||||
| const int def_nr = tgpi->gpd->vertex_group_active_index - 1; | const int def_nr = tgpi->gpd->vertex_group_active_index - 1; | ||||
| const ListBase *defbase = BKE_object_defgroup_list(tgpi->ob); | const bool have_weight = BLI_findlink(&tgpi->gpd->vertex_group_names, def_nr) != NULL; | ||||
| const bool have_weight = (bool)BLI_findlink(defbase, def_nr); | |||||
| /* return to normal cursor and header status */ | /* return to normal cursor and header status */ | ||||
| ED_workspace_status_text(C, NULL); | ED_workspace_status_text(C, NULL); | ||||
| WM_cursor_modal_restore(win); | WM_cursor_modal_restore(win); | ||||
| /* insert keyframes as required... */ | /* insert keyframes as required... */ | ||||
| short add_frame_mode; | short add_frame_mode; | ||||
| if (IS_AUTOKEY_ON(tgpi->scene)) { | if (IS_AUTOKEY_ON(tgpi->scene)) { | ||||
| ▲ Show 20 Lines • Show All 813 Lines • Show Last 20 Lines | |||||