Page MenuHome

Fix T85054: Undo/Redo App handlers broken
ClosedPublic

Authored by Falk David (filedescriptor) on Jan 25 2021, 10:24 PM.

Details

Summary

When defining custom callbacks to the undo and redo handlers, the undo
and redo callbacks were swapped. Undoing an action would call the redo
handlers and redoing an action would call the undo handlers.

The step direction was recently switched (rBc13383d) causing the
BKE_callback_exec_id call in ed_undo.c:255 and ed_undo.c:304
to fail. The ternary if operator must have slipped under the radar.

The fix checks the step direction using the new enum eUndoStepDir.

Diff Detail

Repository
rB Blender
Branch
T85054 (branched from master)
Build Status
Buildable 12372
Build 12372: arc lint + arc unit