Page MenuHome

Undo steps created for non-paint operations (brush size)
Closed, ResolvedPublic


System Information
Operating system: Win7/Win10
Graphics card: gtx1070/hd620

Blender Version
(2.79b, 7ad367d0231d
(2.80, 893fa598319e, blender2.8, 2019-02-25)
Worked: (optional) Im pretty sure on some older versions of 2.79 it worked differently)

Short description of error
Some of blender actions like changing brush size/brush strenght are considered in blenders undo/redo history.
Exact steps for others to reproduce the error
Based on the default startup or an attached .blend file (as simple as possible).

  1. Create any mesh, cube is fine
  2. Go into sculpt mode/dynamic topology or texture paint
  3. Make few strokes
  4. Change brush size few times
  5. Make another stroke
  6. Hit undo and observe what is happening

You should see that it will undo your stroke from step 5. then when you hit another undo, there will be nothing changed since you were changing brush size and then after few more undos you will undo strokes from step 3.
Exact same problem when you redo.

How it should work.
Things like changing brush size/brush strenght/any other change like color picking and many more should not be in undo/redo list.



Event Timeline

Campbell Barton (campbellbarton) renamed this task from Undo+Redo to Undo steps created for non-paint operations (brush size).Feb 26 2019, 3:55 AM
Sebastian Parborg (zeddb) triaged this task as Confirmed, Medium priority.

It should properly handle these as undo steps or not add undo steps at all.

It wont be too much trouble to have it working as it was in 2.7x.

From T62360:

Currently when changing the brush size, strength and many more tool specific settings it is added to the undo history. I think there is a bigger design discussion behind this if this should even be allowed but the bug that is tied to this is that these steps, when undone are not actually undone.
They are just extra undo steps that do nothing. And since when sculpting, painting or drawing it is very common to very often change the size & strength of the current brush, the undo history gets flooded with undo steps that don't undo anything.
To add my take on how this should be fixed: Tool settings should never be included in the default undo history, just like interface changes have no undo steps.
My suggestion would be to perhaps add a second undo history for settings and interface changes, but only if these should still be undo-able.

Brecht Van Lommel (brecht) raised the priority of this task from Confirmed, Medium to Confirmed, High.Apr 1 2019, 1:42 PM