Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/gpencil/gpencil_brush.c
| Show First 20 Lines • Show All 1,635 Lines • ▼ Show 20 Lines | static bool gpsculpt_brush_do_frame( | ||||
| return changed; | return changed; | ||||
| } | } | ||||
| /* Perform two-pass brushes which modify the existing strokes */ | /* Perform two-pass brushes which modify the existing strokes */ | ||||
| static bool gpsculpt_brush_apply_standard(bContext *C, tGP_BrushEditData *gso) | static bool gpsculpt_brush_apply_standard(bContext *C, tGP_BrushEditData *gso) | ||||
| { | { | ||||
| ToolSettings *ts = CTX_data_tool_settings(C); | ToolSettings *ts = CTX_data_tool_settings(C); | ||||
| Depsgraph *depsgraph = CTX_data_depsgraph(C); | Depsgraph *depsgraph = CTX_data_ensure_evaluated_depsgraph(C); | ||||
| Object *obact = gso->object; | Object *obact = gso->object; | ||||
| bGPdata *gpd = gso->gpd; | bGPdata *gpd = gso->gpd; | ||||
| bool changed = false; | bool changed = false; | ||||
| /* Calculate brush-specific data which applies equally to all points */ | /* Calculate brush-specific data which applies equally to all points */ | ||||
| switch (gso->brush_type) { | switch (gso->brush_type) { | ||||
| case GP_SCULPT_TYPE_GRAB: /* Grab points */ | case GP_SCULPT_TYPE_GRAB: /* Grab points */ | ||||
| case GP_SCULPT_TYPE_PUSH: /* Push points */ | case GP_SCULPT_TYPE_PUSH: /* Push points */ | ||||
| ▲ Show 20 Lines • Show All 521 Lines • Show Last 20 Lines | |||||