Skip to content

Commit

Permalink
Fix plane master render target handling (#1455)
Browse files Browse the repository at this point in the history
  • Loading branch information
amylizzle authored Sep 25, 2023
1 parent a14ee4a commit acb8f34
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions OpenDreamClient/Rendering/DreamViewOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,15 @@ private void ProcessIconComponents(DreamIcon icon, Vector2 position, EntityUid u
renderTargetPlaceholder.Layer = current.Layer;
renderTargetPlaceholder.RenderSource = current.RenderTarget;
renderTargetPlaceholder.MouseOpacity = current.MouseOpacity;
if((current.AppearanceFlags & AppearanceFlags.PlaneMaster) != 0){ //Plane masters with render targets get special handling
renderTargetPlaceholder.TransformToApply = current.TransformToApply;
renderTargetPlaceholder.ColorToApply = current.ColorToApply;
renderTargetPlaceholder.ColorMatrixToApply = current.ColorMatrixToApply;
renderTargetPlaceholder.AlphaToApply = current.AlphaToApply;
renderTargetPlaceholder.BlendMode = current.BlendMode;
}
renderTargetPlaceholder.AppearanceFlags = current.AppearanceFlags;
current.AppearanceFlags = current.AppearanceFlags & ~AppearanceFlags.PlaneMaster; //only the placeholder should be marked as master
result.Add(renderTargetPlaceholder);
}

Expand Down

0 comments on commit acb8f34

Please sign in to comment.