mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-07-08 05:04:06 -05:00
root の mesh check
This commit is contained in:
parent
bbec3b8579
commit
f1fc97f449
|
|
@ -207,6 +207,12 @@ namespace UniGLTF
|
|||
Copy.transform.SetParent(m_tmpParent.transform, true);
|
||||
Copy = m_tmpParent;
|
||||
}
|
||||
|
||||
if (Copy.transform.GetComponent<Renderer>() != null)
|
||||
{
|
||||
// should throw ?
|
||||
Debug.LogError("root mesh is not exported");
|
||||
}
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user