mirror of
https://github.com/griffi-gh/hUI.git
synced 2024-11-21 22:58:42 -06:00
disallow opts for rounded rects
This commit is contained in:
parent
2db8d2f056
commit
c0af88fee8
|
@ -124,6 +124,7 @@ impl Frame for FrameRect {
|
|||
size: bottom_right - top_left,
|
||||
color: self.color.corners(),
|
||||
texture: self.image,
|
||||
texture_uv: None,
|
||||
rounded_corners: (self.corner_radius.max_f32() > 0.).then_some(
|
||||
RoundedCorners::from_radius(self.corner_radius)
|
||||
),
|
||||
|
@ -140,6 +141,7 @@ impl Frame for FrameRect {
|
|||
self.bottom_right.y.absolute >= 0. &&
|
||||
self.bottom_right.y.relative >= 1. &&
|
||||
self.color.is_opaque() &&
|
||||
self.image.is_none()
|
||||
self.image.is_none() &&
|
||||
self.corner_radius.max_f32() == 0.
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue