From c2dfef0f4b955e1689e51c1938cd3994967dd39f Mon Sep 17 00:00:00 2001 From: Shirayama Kazatsuyu Date: Fri, 3 Dec 2021 23:20:23 +0900 Subject: [PATCH] Remove NO_ALPHA flag insertion in ColorPicker4::build --- imgui/src/widget/color_editors.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/imgui/src/widget/color_editors.rs b/imgui/src/widget/color_editors.rs index e02e811..c99fe34 100644 --- a/imgui/src/widget/color_editors.rs +++ b/imgui/src/widget/color_editors.rs @@ -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());