Fixed warnings

This commit is contained in:
ousttrue 2018-09-21 21:32:15 +09:00
parent 6afe7fdc7d
commit a873bdccda
3 changed files with 7 additions and 1 deletions

View File

@ -49,7 +49,7 @@ namespace VRM
static void Import(string readPath, UnityPath prefabPath)
{
var bytes = File.ReadAllBytes(readPath);
//var bytes = File.ReadAllBytes(readPath);
var context = new VRMImporterContext(UnityPath.FromFullpath(readPath));
context.ParseGlb(File.ReadAllBytes(readPath));
context.SaveTexturesAsPng(prefabPath);

View File

@ -149,6 +149,7 @@ namespace VRM
}
}
#pragma warning disable 0618
{
// meta(obsolete)
var src = go.GetComponent<VRMMetaInformation>();
@ -157,6 +158,8 @@ namespace VRM
src.CopyTo(root);
}
}
#pragma warning restore 0618
{
// meta
var src = go.GetComponent<VRMMeta>();

View File

@ -102,6 +102,7 @@ namespace VRM
x => gltf.extensions.VRM.secondaryAnimation.boneGroups.Add(x)
);
#pragma warning disable 0618
// meta(obsolete)
{
var meta = exporter.Copy.GetComponent<VRMMetaInformation>();
@ -119,6 +120,8 @@ namespace VRM
gltf.extensions.VRM.meta.reference = meta.Reference;
}
}
#pragma warning restore 0618
// meta
{
var _meta = exporter.Copy.GetComponent<VRMMeta>();