-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1342 from anatawa12/broken-layer-override-support
fix: Unpacking prefab might look like some data lost in PrefabSafeUniqueCollection
- Loading branch information
Showing
11 changed files
with
84 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,30 @@ | ||
using System; | ||
using UnityEngine; | ||
|
||
namespace Anatawa12.AvatarOptimizer | ||
{ | ||
[AddComponentMenu("Avatar Optimizer/AAO Rename BlendShape")] | ||
[DisallowMultipleComponent] | ||
[HelpURL("https://vpm.anatawa12.com/avatar-optimizer/ja/docs/reference/rename-blend-shape/")] | ||
internal class RenameBlendShape : EditSkinnedMeshComponent | ||
internal class RenameBlendShape : EditSkinnedMeshComponent, ISerializationCallbackReceiver | ||
{ | ||
[SerializeField] internal PrefabSafeMap.PrefabSafeMap<string, string> nameMap; | ||
|
||
public RenameBlendShape() | ||
{ | ||
nameMap = new PrefabSafeMap.PrefabSafeMap<string, string>(this); | ||
} | ||
|
||
private void ValidatePSUC() | ||
{ | ||
PrefabSafeMap.PrefabSafeMap.OnValidate(this, x => x.nameMap); | ||
} | ||
|
||
private void OnValidate() => ValidatePSUC(); | ||
void ISerializationCallbackReceiver.OnBeforeSerialize() => ValidatePSUC(); | ||
|
||
void ISerializationCallbackReceiver.OnAfterDeserialize() | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters