Skip to content

Commit

Permalink
fix shader not reapplying
Browse files Browse the repository at this point in the history
  • Loading branch information
DEATHB4DEFEAT committed Nov 14, 2024
1 parent d237304 commit c3584be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Client/Paint/PaintVisualizerSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ protected override void OnAppearanceChange(EntityUid uid, PaintedComponent compo
if (spriteLayer is not Layer layer)
continue;

if (layer.Shader == null) // If shader isn't null we dont want to replace the original shader.
if (layer.Shader == null || layer.Shader == shader) // If shader isn't null we dont want to replace the original shader.
{
layer.Shader = shader;
layer.Color = component.Color;
Expand Down

0 comments on commit c3584be

Please sign in to comment.