diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-01-01 20:48:48 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-01-01 20:48:48 +0300 |
commit | d0ec3f428c5bafd46d7bd80dedff15c6c7f9f8e6 (patch) | |
tree | 4a012220e713924746cc1c5016b1d718bbd1549d /source/blender/editors/gpencil/gpencil_buttons.c | |
parent | 7cc72d5830c8440a2b05ef15f1eeba42c615fdc3 (diff) |
- grease pencil option to only use the endpoint depths. this makes drawing shapes in 3D easier since it wont stick to every depth the line passes through.
- use a 8x8 area when finding stroke depths since thin lines can get ignored if the point is not close enough to them.
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_buttons.c')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_buttons.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/gpencil/gpencil_buttons.c b/source/blender/editors/gpencil/gpencil_buttons.c index 4f12f072e72..e93788bc495 100644 --- a/source/blender/editors/gpencil/gpencil_buttons.c +++ b/source/blender/editors/gpencil/gpencil_buttons.c @@ -266,6 +266,10 @@ static void draw_gpencil_panel (bContext *C, uiLayout *layout, bGPdata *gpd, Poi row= uiLayoutRow(col, 1); uiItemEnumR_string(row, NULL, 0, &gpd_ptr, "draw_mode", "SURFACE"); uiItemEnumR_string(row, NULL, 0, &gpd_ptr, "draw_mode", "STROKE"); + + row= uiLayoutRow(col, 0); + uiLayoutSetActive(row, (gpd->flag & GP_DATA_DEPTH_STROKE) ? 1:0); + uiItemR(row, NULL, 0, &gpd_ptr, "use_stroke_endpoints", 0); } |