mirror of
https://github.com/griffi-gh/hUI.git
synced 2024-11-25 08:28:42 -06:00
fix alpha check
This commit is contained in:
parent
1fa292ae6b
commit
bc40d4c8cc
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue