Skip to content

Commit

Permalink
Fix bug where frames in the overlay frame selector were completely black
Browse files Browse the repository at this point in the history
  • Loading branch information
Rampastring committed Mar 11, 2024
1 parent c2dc0ea commit eeb621c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/TSMapEditor/UI/OverlayFrameSelector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ public override void Draw(GameTime gameTime)
continue;

palettedDrawEffect.Parameters["PaletteTexture"].SetValue(currentOverlayShape.GetPaletteTexture());
palettedDrawEffect.Parameters["Lighting"].SetValue(Vector4.One);

DrawTexture(frame.Texture, new Rectangle(frame.Location.X + frame.Offset.X,
viewY + frame.Location.Y + frame.Offset.Y, frame.Texture.Width, frame.Texture.Height), Color.White);
Expand Down

0 comments on commit eeb621c

Please sign in to comment.