mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-04-11 23:19:00 +08:00
chore: remove parent check for adding meshsettings
This commit is contained in:
parent
07b648dcc1
commit
bebdb41424
@ -231,8 +231,7 @@ namespace nadena.dev.modular_avatar.core.editor
|
|||||||
var mSInheritProbeAnchor = ModularAvatarMeshSettings.InheritMode.SetOrInherit;
|
var mSInheritProbeAnchor = ModularAvatarMeshSettings.InheritMode.SetOrInherit;
|
||||||
var mSInheritBounds = ModularAvatarMeshSettings.InheritMode.SetOrInherit;
|
var mSInheritBounds = ModularAvatarMeshSettings.InheritMode.SetOrInherit;
|
||||||
if (outfitRoot != null
|
if (outfitRoot != null
|
||||||
&& meshSettings == null
|
&& meshSettings == null)
|
||||||
&& outfitRoot.GetComponentInParent<ModularAvatarMeshSettings>() == null)
|
|
||||||
{
|
{
|
||||||
meshSettings = Undo.AddComponent<ModularAvatarMeshSettings>(outfitRoot.gameObject);
|
meshSettings = Undo.AddComponent<ModularAvatarMeshSettings>(outfitRoot.gameObject);
|
||||||
} else if (outfitRoot != null && meshSettings != null) {
|
} else if (outfitRoot != null && meshSettings != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user