mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-13 22:09:53 -05:00
fix prefab revert error
This commit is contained in:
parent
7559fb2dde
commit
3e0c352edc
|
|
@ -394,12 +394,15 @@ namespace VRM
|
|||
File.WriteAllBytes(path, bytes);
|
||||
Debug.LogFormat("Export elapsed {0}", sw.Elapsed);
|
||||
}
|
||||
|
||||
if (IsPrefab(Source))
|
||||
{
|
||||
#if UNITY_2018_3_OR_NEWER
|
||||
PrefabUtility.RevertPrefabInstance(Source, InteractionMode.AutomatedAction);
|
||||
PrefabUtility.RevertPrefabInstance(Source, InteractionMode.AutomatedAction);
|
||||
#else
|
||||
PrefabUtility.RevertPrefabInstance(target);
|
||||
PrefabUtility.RevertPrefabInstance(target);
|
||||
#endif
|
||||
}
|
||||
|
||||
if (path.StartsWithUnityAssetPath())
|
||||
{
|
||||
AssetDatabase.ImportAsset(path.ToUnityRelativePath());
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user