mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-30 18:22:52 +08:00
fix: ArgumentException with components with missing script (#327)
This commit is contained in:
parent
ed4c1ad5a0
commit
5577e4c1bc
@ -50,6 +50,8 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
{
|
||||
foreach (var component in obj.GetComponents<Component>())
|
||||
{
|
||||
// component is null if script is missing
|
||||
if (!component) continue;
|
||||
switch (component)
|
||||
{
|
||||
case Transform t: break;
|
||||
@ -184,4 +186,4 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user