Skip to content

Commit bca7315

Browse files
Draw DefaultProjectionSprite if the container's parent is null
1 parent 56aec53 commit bca7315

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Wobble/Graphics/Container.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ protected override void RecalculateTransformMatrix()
6565

6666
public override void Draw(GameTime gameTime)
6767
{
68+
if (Parent == null)
69+
DefaultProjectionSprite?.Draw(gameTime);
6870
if (RenderTargetOptions.RenderTarget.Value != null)
6971
GameBase.Game.ScheduledRenderTargetDraws.Add(DrawToRenderTarget);
7072
else

0 commit comments

Comments
 (0)