private void Open() { string adjb = Path.GetDirectoryName(AbsolutePath) + "/model.adjb"; if (File.Exists(adjb)) { ExtendedMesh = new Adjb(); ExtendedMesh.Read(adjb); } Ssbh.TryParseSsbhFile(AbsolutePath, out mesh); }
public override void Open() { string adjb = Path.GetDirectoryName(AbsolutePath) + "/model.adjb"; if (File.Exists(adjb)) { ExtendedMesh = new Adjb(); ExtendedMesh.Read(adjb); } if (Ssbh.TryParseSsbhFile(AbsolutePath, out SsbhFile ssbhFile)) { if (ssbhFile is Mesh) { mesh = (Mesh)ssbhFile; } } }