Skip to content

Commit

Permalink
fix: when the player window moved to a different resolution display, …
Browse files Browse the repository at this point in the history
…soft masking does not work property

close #193
  • Loading branch information
mob-sakai committed Sep 6, 2024
1 parent 23ea02f commit 79cac0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Packages/src/Runtime/SoftMask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ public override Material GetModifiedMaterial(Material baseMaterial)

private void SetDirtyAndNotify()
{
if (isDirty || !this || !isActiveAndEnabled) return;
if (!this || !isActiveAndEnabled) return;

SetSoftMaskDirty();
MaskUtilities.NotifyStencilStateChanged(this);
Expand Down

0 comments on commit 79cac0e

Please sign in to comment.