diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2020-05-13 04:00:34 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2020-05-13 04:00:34 +0300 |
commit | 429841e5fd1c5fa77291ec46f3f0e5170ad30342 (patch) | |
tree | 3f4e210ce9b79825397393e3ab6714315c563878 /source/blender/blenloader/intern | |
parent | f9d0f59bed4d7fea3622cc01469e225435ad4e56 (diff) | |
parent | 9253386dcb14063ba2a4d82fa6d4d58090adfd5b (diff) |
Merge branch 'blender-v2.83-release'
Diffstat (limited to 'source/blender/blenloader/intern')
-rw-r--r-- | source/blender/blenloader/intern/versioning_280.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c index 4261682a17c..91c07d810b7 100644 --- a/source/blender/blenloader/intern/versioning_280.c +++ b/source/blender/blenloader/intern/versioning_280.c @@ -5217,5 +5217,14 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain) */ { /* Keep this block, even when empty. */ + + /* Reset the cloth mass to 1.0 in brushes with an invalid value. */ + for (Brush *br = bmain->brushes.first; br; br = br->id.next) { + if (br->sculpt_tool == SCULPT_TOOL_CLOTH) { + if (br->cloth_mass == 0.0f) { + br->cloth_mass = 1.0f; + } + } + } } } |