Merge pull request #579 from kazatsuyu/fix/color-picker-alpha

Remove NO_ALPHA flag insertion in ColorPicker4::build
This commit is contained in:
dbr/Ben 2021-12-04 11:35:08 +11:00 committed by GitHub
commit 352b5d0b9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -886,8 +886,7 @@ where
/// Builds the color picker.
///
/// Returns true if the color value was changed.
pub fn build(mut self, ui: &Ui) -> bool {
self.flags.insert(ColorEditFlags::NO_ALPHA);
pub fn build(self, ui: &Ui) -> bool {
let mut value: [f32; 4] = (*self.value).into().into();
let ref_color = self.ref_color.map(|c| c.as_ptr()).unwrap_or(ptr::null());