Skip to content
This repository was archived by the owner on Sep 21, 2023. It is now read-only.

Commit b2b8428

Browse files
author
Alexis Huvier
committed
fix(widgets): Fix display children
1 parent b25e433 commit b2b8428

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

SharpEngine/Widget/Widget.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ public virtual void Update(float delta)
156156
/// </summary>
157157
public virtual void Draw()
158158
{
159+
if(!Displayed) return;
160+
159161
foreach (var child in _children)
160162
child.Draw();
161163
}

0 commit comments

Comments
 (0)