Page MenuHome

Fix a few issues in per-datablock global undo
ClosedPublic

Authored by Brecht Van Lommel (brecht) on Mar 29 2020, 2:20 PM.

Details

Summary

Mesh writes a modified copy, which meant recalc_undo_accumulated was never
cleared on the actual datablock. Also clear mesh->runtime on write to avoid
detecting changes, since it's a simple change and cleared on read anyway.

Clear is_identical_future before adding a next undo step, to avoid wrong
values for cases where we undo and then add a different next step with
different changes.

Also tweaks bke.undosys logging so it prints all undo pushes for debugging.

Diff Detail

Repository
rB Blender
Branch
undo-refactor (branched from master)
Build Status
Buildable 7359
Build 7359: arc lint + arc unit