mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-27 21:34:38 -05:00
root の mesh check
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user