Cleanup: Remove unnecessary use of uiBut::a2

The color luminosity was written to this value, but never read
anywhere. uiBut::a2 is only read in three more places, none of
which could reasonably use this value.
This commit is contained in:
Hans Goudey
2024-02-29 22:27:07 -05:00
parent 121ded625f
commit 9018c8b99b

View File

@@ -5611,7 +5611,6 @@ void uiTemplateColorPicker(uiLayout *layout,
if (lock_luminosity) {
float color[4]; /* in case of alpha */
RNA_property_float_get_array(ptr, prop, color);
but->a2 = len_v3(color);
cpicker->luminosity_lock_value = len_v3(color);
}