mirror of
https://github.com/mob-sakai/UIEffect.git
synced 2026-11-21 02:12:37 +08:00
fix: skip processing when graphic is invalid
This commit is contained in:
@@ -129,6 +129,8 @@ namespace Coffee.UIEffects
|
|||||||
|
|
||||||
private bool CanModifyMesh()
|
private bool CanModifyMesh()
|
||||||
{
|
{
|
||||||
|
if (!graphic || !graphic.isActiveAndEnabled) return false;
|
||||||
|
|
||||||
// The transitionRoot is same as the transform => true.
|
// The transitionRoot is same as the transform => true.
|
||||||
var root = transitionRoot;
|
var root = transitionRoot;
|
||||||
if (transform == root) return true;
|
if (transform == root) return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user