mirror of
https://github.com/mob-sakai/UIEffect.git
synced 2026-11-19 17:22:37 +08:00
fix: the effect is kept even if the component is disabled (UIFlip, UIGradient)
This commit is contained in:
@@ -51,6 +51,8 @@ namespace Coffee.UIExtensions
|
||||
/// <param name="vh">VertexHelper.</param>
|
||||
public override void ModifyMesh(VertexHelper vh)
|
||||
{
|
||||
if (!isActiveAndEnabled) return;
|
||||
|
||||
var vt = default(UIVertex);
|
||||
for (var i = 0; i < vh.currentVertCount; i++)
|
||||
{
|
||||
|
||||
@@ -232,7 +232,7 @@ namespace Coffee.UIExtensions
|
||||
/// </summary>
|
||||
public override void ModifyMesh(VertexHelper vh)
|
||||
{
|
||||
if (!IsActive())
|
||||
if (!isActiveAndEnabled)
|
||||
return;
|
||||
|
||||
// Gradient space.
|
||||
|
||||
Reference in New Issue
Block a user