Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/gpencil/gpencil_utils.c
| Show All 38 Lines | |||||
| #include "BKE_brush.h" | #include "BKE_brush.h" | ||||
| #include "BKE_collection.h" | #include "BKE_collection.h" | ||||
| #include "BKE_colortools.h" | #include "BKE_colortools.h" | ||||
| #include "BKE_context.h" | #include "BKE_context.h" | ||||
| #include "BKE_deform.h" | #include "BKE_deform.h" | ||||
| #include "BKE_gpencil.h" | #include "BKE_gpencil.h" | ||||
| #include "BKE_gpencil_curve.h" | #include "BKE_gpencil_curve.h" | ||||
| #include "BKE_gpencil_geom.h" | #include "BKE_gpencil_geom.h" | ||||
| #include "BKE_gpencil_update_cache.h" | |||||
| #include "BKE_main.h" | #include "BKE_main.h" | ||||
| #include "BKE_material.h" | #include "BKE_material.h" | ||||
| #include "BKE_object.h" | #include "BKE_object.h" | ||||
| #include "BKE_paint.h" | #include "BKE_paint.h" | ||||
| #include "BKE_tracking.h" | #include "BKE_tracking.h" | ||||
| #include "WM_api.h" | #include "WM_api.h" | ||||
| #include "WM_toolsystem.h" | #include "WM_toolsystem.h" | ||||
| ▲ Show 20 Lines • Show All 1,935 Lines • ▼ Show 20 Lines | default: | ||||
| gpd->flag &= ~GP_DATA_STROKE_EDITMODE; | gpd->flag &= ~GP_DATA_STROKE_EDITMODE; | ||||
| gpd->flag &= ~GP_DATA_STROKE_PAINTMODE; | gpd->flag &= ~GP_DATA_STROKE_PAINTMODE; | ||||
| gpd->flag &= ~GP_DATA_STROKE_SCULPTMODE; | gpd->flag &= ~GP_DATA_STROKE_SCULPTMODE; | ||||
| gpd->flag &= ~GP_DATA_STROKE_WEIGHTMODE; | gpd->flag &= ~GP_DATA_STROKE_WEIGHTMODE; | ||||
| gpd->flag &= ~GP_DATA_STROKE_VERTEXMODE; | gpd->flag &= ~GP_DATA_STROKE_VERTEXMODE; | ||||
| ED_gpencil_toggle_brush_cursor(C, false, NULL); | ED_gpencil_toggle_brush_cursor(C, false, NULL); | ||||
| break; | break; | ||||
| } | } | ||||
| /* Flag on the gpd changed, so tag using light update. */ | |||||
| BKE_gpencil_tag_light_update(gpd, NULL, NULL, NULL); | |||||
| } | } | ||||
| /** | /** | ||||
| * Helper to convert 2d to 3d for simple drawing buffer. | * Helper to convert 2d to 3d for simple drawing buffer. | ||||
| */ | */ | ||||
| static void gpencil_stroke_convertcoords(ARegion *region, | static void gpencil_stroke_convertcoords(ARegion *region, | ||||
| const tGPspoint *point2D, | const tGPspoint *point2D, | ||||
| const float origin[3], | const float origin[3], | ||||
| ▲ Show 20 Lines • Show All 1,286 Lines • Show Last 20 Lines | |||||