Blender Git Loki

Git Commits -> Revision fc9626b

Revision fc9626b by Antonis Ryakiotakis (master)
February 5, 2014, 08:45 (GMT)
Change confusing check discovered while working on HCL color wheel:

COLOR widgets never get created with UI_GRAD_V_ALT values. This is
intended for HSVCUBE color sliders only so reverting this to old value
before it was substituted with a define, which was -1.

There's one case where COLOR buttons get defined with a1 value different
than -1 which is in ui_def_but_rna. There the step value of the RNA
property is used. However, that meant that if step equaled to 9, which
is UI_GRAD_V_ALT value (unlikely) or if UI_GRAD_V_ALT was changed to 10
in future, or we added check for e.g. UI_GRAD_L_ALT which is 10 in HCL
branch, color widget would not get a color selection menu spawned.

Commit Details:

Full Hash: fc9626b1df5f9a05673199e82f4aafd1f4d42d08
Parent Commit: 88843ca
Lines Changed: +2, -2

2 Modified Paths:

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