Blender Git Commit Log

Git Commits -> Revision 90c1afb

Revision 90c1afb by Antonis Ryakiotakis (master)
September 18, 2014, 10:51 (GMT)
Fix T41708, active palette indicator not refreshing when clicking

Issue, after a lot of blood sweat and tears, was found in
ui_but_update_from_old_block, where we restore a button to its old
values when possible. The problem here is that a1 and a2 are not really
meant to store temporary variables, because they tend to get overriden
and palette selection is one of those temporary states.

Instead, we now store the position of each button in the palette in a2
and pointer to the palette in the customdata pointer of each button and
use that to test if it's active. The positions won't change when
clicking so we are guaranteed that the old button won't override the new
one with garbage.

It's still hacky but it is better than testing button types when copying
old values.

Commit Details:

Full Hash: 90c1afb02005671bb631c0fcb8b4981c3aa6e89e
Parent Commit: 4412144
Lines Changed: +4, -8

5 Modified Paths:

/source/blender/editors/include/UI_interface.h (+0, -1) (Diff)
/source/blender/editors/interface/interface_handlers.c (+1, -3) (Diff)
/source/blender/editors/interface/interface_intern.h (+1, -1) (Diff)
/source/blender/editors/interface/interface_templates.c (+1, -2) (Diff)
/source/blender/editors/interface/interface_widgets.c (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021