Blender Git Loki

Git Commits -> Revision e1a9ba9

Revision e1a9ba9 by Falk David (master)
April 20, 2021, 13:46 (GMT)
Fix T87637: Dragging button value cancel not working

Dragging a number button, then holding the value and pressing escape
would not reset the value correctly.
This was because eb06ccc32462 assumed that `data->value` and
`data->startvalue` were set during dragging which they are not.

The fix moves the if statement into the section where we check if a
number was entered (number edit) making sure that we only cancel
if the button was in "string enter" mode and that the value entered
was the same as before.

Reviewed By: HooglyBoogly, Severin

Maniphest Tasks: T87637

Differential Revision: https://developer.blender.org/D11021

Commit Details:

Full Hash: e1a9ba94c59950ed6af09b524d7a7fe22919055b
Parent Commit: 7834fcc
Lines Changed: +6, -6

1 Modified Path:

/source/blender/editors/interface/interface_handlers.c (+6, -6) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021