diff --git a/studio/src/ui/utils.rs b/studio/src/ui/utils.rs index 5d43a81..0a57641 100644 --- a/studio/src/ui/utils.rs +++ b/studio/src/ui/utils.rs @@ -529,7 +529,7 @@ pub fn show_reflect(r: &dyn Reflect, reflect: ReflectChange) -> Option ("value".to_string(), variant.name().to_string()), ]; - let is_active_variant = i == v.variant_index(); + let is_active_variant = (i == v.variant_index()); if is_active_variant { attributes.push(("selected".to_string(), "".to_string())); }