diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2019-11-19 00:47:23 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2019-11-21 19:55:36 +0300 |
commit | 15f82278d5d4ca2b282cb8e5e377965cf28aaa17 (patch) | |
tree | 3baf4f638dec52fde9802699a2bb1a2ea261efe1 /source/blender/blenloader | |
parent | 2ec9aa3b71f4ebd9676326b690aaf3049849adee (diff) |
Sculpt/Paint: Dash Ratio and Dash Samples
Dash Ratio and Dash Samples are brush properties to modify the strength of the brush during a stroke. This is useful to create dashed lines in texture paint or stitches in sculpt mode.
Reviewed By: jbakker
Differential Revision: https://developer.blender.org/D5949
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/versioning_280.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c index 761424a5879..488cf6b0213 100644 --- a/source/blender/blenloader/intern/versioning_280.c +++ b/source/blender/blenloader/intern/versioning_280.c @@ -3964,5 +3964,13 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain) } } } + + /* Dash Ratio and Dash Samples */ + if (!DNA_struct_elem_find(fd->filesdna, "Brush", "float", "dash_ratio")) { + for (Brush *br = bmain->brushes.first; br; br = br->id.next) { + br->dash_ratio = 1.0f; + br->dash_samples = 20; + } + } } } |