mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-12 21:45:06 -05:00
NullReferenceException
This commit is contained in:
parent
26936c1e04
commit
743a44550c
|
|
@ -705,12 +705,17 @@ namespace VRM
|
|||
|
||||
m_validations.Clear();
|
||||
m_validations.AddRange(Validate());
|
||||
m_validations.AddRange(VRMSpringBoneValidator.Validate(ExportRoot));
|
||||
var firstPerson = ExportRoot.GetComponent<VRMFirstPerson>();
|
||||
if (firstPerson != null)
|
||||
|
||||
if (ExportRoot != null)
|
||||
{
|
||||
m_validations.AddRange(firstPerson.Validate());
|
||||
m_validations.AddRange(VRMSpringBoneValidator.Validate(ExportRoot));
|
||||
var firstPerson = ExportRoot.GetComponent<VRMFirstPerson>();
|
||||
if (firstPerson != null)
|
||||
{
|
||||
m_validations.AddRange(firstPerson.Validate());
|
||||
}
|
||||
}
|
||||
|
||||
var hasError = m_validations.Any(x => !x.CanExport);
|
||||
m_IsValid = !hasError && !MetaHasError;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user