diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2016-03-27 13:24:14 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2016-03-27 17:21:28 +0300 |
commit | bfbbc8ec4001243ad5e9954665ddf9621329319f (patch) | |
tree | 95ec19c1cb7714e8d978a517676f4680cf1f8d88 /source/blender/makesdna | |
parent | 71107208ddb2d70cc69d65f03088a8fa348ab030 (diff) |
Improve grease pencil stroke quality
Improve the quality of current grease pencil strokes adding a new dynamic smooth and subdivision. The level of smooth and subdivide can be adjusted using UI parameters. These options are disabled by default in order to keep the grease pencil stroke compatible with any existing add-on.
Both parameters are defined at layer level.
Reviewers: aligorith
Differential Revision: https://developer.blender.org/D1866
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_gpencil_types.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_gpencil_types.h b/source/blender/makesdna/DNA_gpencil_types.h index aa98ddb11ae..0ef213235b6 100644 --- a/source/blender/makesdna/DNA_gpencil_types.h +++ b/source/blender/makesdna/DNA_gpencil_types.h @@ -130,6 +130,10 @@ typedef struct bGPDlayer { char info[128]; /* optional reference info about this layer (i.e. "director's comments, 12/3") * this is used for the name of the layer too and kept unique. */ + + float smooth_drawfac; /* factor used for dynamic smooth of strokes */ + short sublevel; /* subdivision level */ + short pad[5]; /* padding for compiler error */ } bGPDlayer; /* bGPDlayer->flag */ |