Skip to content

Commit

Permalink
Merge pull request #475 from bluefallsky/enhance/gradient2-fix-radial…
Browse files Browse the repository at this point in the history
…-triangle

Enhance/gradient2 fix radial triangle
  • Loading branch information
SimonDarksideJ authored Jun 3, 2024
2 parents 8301af7 + 8674445 commit 3f3e481
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Runtime/Scripts/Controls/Sliders/BoxSlider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -367,5 +367,14 @@ public virtual void OnInitializePotentialDrag(PointerEventData eventData)
eventData.useDragThreshold = false;
}

public void SetXWithoutNotify(float x)
{
SetX(x, false);
}

public void SetYWithoutNotify(float y)
{
SetY(y, false);
}
}
}
2 changes: 1 addition & 1 deletion Runtime/Scripts/Effects/Gradient2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public override void ModifyMesh(VertexHelper helper)

helper.AddVert(centralVertex);

for (int i = 1; i < steps; i++) helper.AddTriangle(i - 1, i, steps);
for (int i = 1; i < steps; i++) helper.AddTriangle(i, i-1, steps);
helper.AddTriangle(0, steps - 1, steps);
}

Expand Down

0 comments on commit 3f3e481

Please sign in to comment.