fix alpha check

This commit is contained in:
griffi-gh 2024-02-20 20:31:12 +01:00
parent 1fa292ae6b
commit bc40d4c8cc

View file

@ -128,7 +128,7 @@ impl UiElement for Container {
let mut position = ctx.layout.position;
//background
if self.background.z > 0. {
if self.background.w > 0. {
ctx.draw.add(UiDrawCommand::Rectangle {
position,
size: ctx.measure.size,