fix: logspam caused by ScaleProxy on unity 2019 (#699)

This commit is contained in:
bd_ 2024-02-25 22:30:42 -08:00 committed by GitHub
parent 0a82c59cd1
commit 1666f96d61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -82,6 +82,9 @@ namespace nadena.dev.modular_avatar.core
ClearOverrides(root);
// Avoid logspam on Unity 2019
if (PrefabUtility.IsPartOfPrefabInstance(gameObject)) return;
DestroyImmediate(gameObject);
}