mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-27 21:34:38 -05:00
OldMeta to OriginalMetaBeforeMigration
This commit is contained in:
@@ -18,7 +18,7 @@ namespace UniVRM10
|
||||
{
|
||||
public GltfData Data { get; }
|
||||
public UniGLTF.Extensions.VRMC_vrm.VRMC_vrm VrmExtension { get; }
|
||||
public readonly Migration.Vrm0Meta OldMeta;
|
||||
public readonly Migration.Vrm0Meta OriginalMetaBeforeMigration;
|
||||
public readonly Vrm10FileType FileType;
|
||||
public readonly String Message;
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace UniVRM10
|
||||
VrmExtension = vrm;
|
||||
FileType = fileType;
|
||||
Message = message;
|
||||
OldMeta = oldMeta;
|
||||
OriginalMetaBeforeMigration = oldMeta;
|
||||
}
|
||||
|
||||
public static bool TryParseOrMigrate(string path, bool doMigrate, out Vrm10Data result)
|
||||
|
||||
@@ -441,10 +441,10 @@ namespace UniVRM10.VRM10Viewer
|
||||
// migrate しても thumbnail は同じ
|
||||
var thumbnail = await loader.LoadVrmThumbnailAsync();
|
||||
|
||||
if (vrm.OldMeta != null)
|
||||
if (vrm.OriginalMetaBeforeMigration != null)
|
||||
{
|
||||
// migrated from vrm-0.x. use OldMeta
|
||||
m_texts.UpdateMeta(vrm.OldMeta, thumbnail);
|
||||
m_texts.UpdateMeta(vrm.OriginalMetaBeforeMigration, thumbnail);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user