Work around T86015: Crash undoing in certain scenario (disabling Global Undo).
Simply disable advanced 're-use current blend data` process when loading a memfile step and Global Undo is disabled, since there is no way to ensure we have a proper 'differential' state in the stack then. NOTE: this is a quick work-around to fix the crash, not a satisfying solution by far (pretty sure there can still be crashes if you then re-enable Global Undo afterwards e.g.).
This commit is contained in:
parent
ca63729a5b
commit
9def00a8ca
|
@ -152,7 +152,7 @@ static void memfile_undosys_step_decode(struct bContext *C,
|
|||
|
||||
bool use_old_bmain_data = true;
|
||||
|
||||
if (USER_EXPERIMENTAL_TEST(&U, use_undo_legacy)) {
|
||||
if (USER_EXPERIMENTAL_TEST(&U, use_undo_legacy) || !(U.uiflag & USER_GLOBALUNDO)) {
|
||||
use_old_bmain_data = false;
|
||||
}
|
||||
else if (undo_direction == STEP_REDO) {
|
||||
|
|
Loading…
Reference in New Issue