Page MenuHome

Fix T81076: Crash on switch object operator undo
ClosedPublic

Authored by Pablo Dobarro (pablodp606) on Oct 18 2020, 7:18 PM.

Details

Summary

This fixes the crash and the assert, but undo is done in multiple steps

Diff Detail

Repository
rB Blender

Event Timeline

Pablo Dobarro (pablodp606) requested review of this revision.Oct 18 2020, 7:18 PM
Pablo Dobarro (pablodp606) created this revision.

Requesting some minor changes, otherwise seems fine.

source/blender/editors/object/object_modes.c
480

Are you sure this is needed? use_undo=true in the command above.

487

This should be noted as FIXME, multiple undo operations per operator isn't what users would expect and should eventually be resolved (grouped in some way for e.g.).

519–520

Should note that undo pushes are handled by the operator.

This revision is now accepted and ready to land.Oct 19 2020, 2:45 PM
This revision was automatically updated to reflect the committed changes.
Pablo Dobarro (pablodp606) marked 3 inline comments as done.