Fix T74542, T74386: schulpt changes not saving (dyntopo or mutires)
Caused by rB2d423479bdea. Correct check for stroke being painted. thx also to brecht checking.
This commit is contained in:
parent
237ef0dcc7
commit
9e382dd2a3
Notes:
blender-bot
2023-02-14 11:21:40 +01:00
Referenced by issue #74911, GPUShader: compile error on opening blender Referenced by issue #74900, Blender crashes when starting the VR Session of the Scene Inspection addon Referenced by issue #74542, Sculpt mode: multires not saving brush strokes Referenced by issue #74386, Sculpt Changes with Dyntopo Enabled Don't Save Referenced by issue #73371, Appending Collections to a new empty file and trying to save that file causes Blender to crash [cause identified!]
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue