Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2020-03-18 18:30:41 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2020-03-18 18:41:41 +0300
commit9e382dd2a3d8569201a3e5c1a8478166c77e9029 (patch)
treee735dfb28410e09a67c40f82abf76babb297fb0c /source/blender/editors/util/ed_util.c
parent237ef0dcc7ef7810b49aad35e60e3322ccbcfff1 (diff)
Fix T74542, T74386: schulpt changes not saving (dyntopo or mutires)
Caused by rB2d423479bdea. Correct check for stroke being painted. thx also to brecht checking.
Diffstat (limited to 'source/blender/editors/util/ed_util.c')
-rw-r--r--source/blender/editors/util/ed_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/util/ed_util.c b/source/blender/editors/util/ed_util.c
index c3eae53eda0..e7d58c8f84b 100644
--- a/source/blender/editors/util/ed_util.c
+++ b/source/blender/editors/util/ed_util.c
@@ -238,7 +238,7 @@ bool ED_editors_flush_edits_for_object_ex(Main *bmain,
/* Don't allow flushing while in the middle of a stroke (frees data in use).
* Auto-save prevents this from happening but scripts
* may cause a flush on saving: T53986. */
- if (!ELEM(NULL, ob->sculpt, ob->sculpt->cache)) {
+ if (ob->sculpt != NULL && ob->sculpt->cache == NULL) {
char *needs_flush_ptr = &ob->sculpt->needs_flush_to_id;
if (check_needs_flush && (*needs_flush_ptr == 0)) {
return false;