mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-31 23:42:28 -05:00
Fixed warnings
This commit is contained in:
parent
6afe7fdc7d
commit
a873bdccda
|
|
@ -49,7 +49,7 @@ namespace VRM
|
||||||
|
|
||||||
static void Import(string readPath, UnityPath prefabPath)
|
static void Import(string readPath, UnityPath prefabPath)
|
||||||
{
|
{
|
||||||
var bytes = File.ReadAllBytes(readPath);
|
//var bytes = File.ReadAllBytes(readPath);
|
||||||
var context = new VRMImporterContext(UnityPath.FromFullpath(readPath));
|
var context = new VRMImporterContext(UnityPath.FromFullpath(readPath));
|
||||||
context.ParseGlb(File.ReadAllBytes(readPath));
|
context.ParseGlb(File.ReadAllBytes(readPath));
|
||||||
context.SaveTexturesAsPng(prefabPath);
|
context.SaveTexturesAsPng(prefabPath);
|
||||||
|
|
|
||||||
|
|
@ -149,6 +149,7 @@ namespace VRM
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pragma warning disable 0618
|
||||||
{
|
{
|
||||||
// meta(obsolete)
|
// meta(obsolete)
|
||||||
var src = go.GetComponent<VRMMetaInformation>();
|
var src = go.GetComponent<VRMMetaInformation>();
|
||||||
|
|
@ -157,6 +158,8 @@ namespace VRM
|
||||||
src.CopyTo(root);
|
src.CopyTo(root);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#pragma warning restore 0618
|
||||||
|
|
||||||
{
|
{
|
||||||
// meta
|
// meta
|
||||||
var src = go.GetComponent<VRMMeta>();
|
var src = go.GetComponent<VRMMeta>();
|
||||||
|
|
|
||||||
|
|
@ -102,6 +102,7 @@ namespace VRM
|
||||||
x => gltf.extensions.VRM.secondaryAnimation.boneGroups.Add(x)
|
x => gltf.extensions.VRM.secondaryAnimation.boneGroups.Add(x)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
#pragma warning disable 0618
|
||||||
// meta(obsolete)
|
// meta(obsolete)
|
||||||
{
|
{
|
||||||
var meta = exporter.Copy.GetComponent<VRMMetaInformation>();
|
var meta = exporter.Copy.GetComponent<VRMMetaInformation>();
|
||||||
|
|
@ -119,6 +120,8 @@ namespace VRM
|
||||||
gltf.extensions.VRM.meta.reference = meta.Reference;
|
gltf.extensions.VRM.meta.reference = meta.Reference;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#pragma warning restore 0618
|
||||||
|
|
||||||
// meta
|
// meta
|
||||||
{
|
{
|
||||||
var _meta = exporter.Copy.GetComponent<VRMMeta>();
|
var _meta = exporter.Copy.GetComponent<VRMMeta>();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user