DarkRadiant: master 50d683d6

Author Committer Branch Timestamp Parent
orbweaver orbweaver master 14.07.2021 19:55 master 39efc2ec
Changeset Brightness adjustment now supports undo

Start an undo command when the drag begins, and finish it when the mouse is
released (i.e. at the same time the colour picker is updated). This avoids
flooding the undo queue with lots of useless tiny adjustment commands.

The incremental drag event is now wxEVT_SCROLL_THUMBTRACK, since an extra
wxEVT_SLIDER is emitted *after* the final wxEVT_SCROLL_CHANGED event, resulting
in a spurious new undo command being initiated which in turn prevents the
previous command from being undone.
mod - radiant/ui/lightinspector/LightInspector.cpp Diff File
mod - radiant/ui/lightinspector/LightInspector.h Diff File