fix: skip processing when graphic is invalid

This commit is contained in:
mob-sakai
2025-05-22 17:45:17 +09:00
parent 3ff52e4735
commit 5cd48a4633
+2
View File
@@ -129,6 +129,8 @@ namespace Coffee.UIEffects
private bool CanModifyMesh()
{
if (!graphic || !graphic.isActiveAndEnabled) return false;
// The transitionRoot is same as the transform => true.
var root = transitionRoot;
if (transform == root) return true;