mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-03-10 07:44:57 +08:00
fix: MaterialSetter is not working without ShapeChanger or ObjectToggle (#1043)
This commit is contained in:
parent
f96b2627aa
commit
a2b9b817ce
@ -17,7 +17,9 @@ namespace nadena.dev.modular_avatar.core.editor
|
|||||||
var hasShapeChanger = context.AvatarRootObject.GetComponentInChildren<ModularAvatarShapeChanger>() != null;
|
var hasShapeChanger = context.AvatarRootObject.GetComponentInChildren<ModularAvatarShapeChanger>() != null;
|
||||||
var hasObjectSwitcher =
|
var hasObjectSwitcher =
|
||||||
context.AvatarRootObject.GetComponentInChildren<ModularAvatarObjectToggle>() != null;
|
context.AvatarRootObject.GetComponentInChildren<ModularAvatarObjectToggle>() != null;
|
||||||
if (hasShapeChanger || hasObjectSwitcher)
|
var hasMaterialSetter =
|
||||||
|
context.AvatarRootObject.GetComponentInChildren<ModularAvatarMaterialSetter>() != null;
|
||||||
|
if (hasShapeChanger || hasObjectSwitcher || hasMaterialSetter)
|
||||||
{
|
{
|
||||||
var clip = new AnimationClip();
|
var clip = new AnimationClip();
|
||||||
clip.name = "MA Shape Changer Defaults";
|
clip.name = "MA Shape Changer Defaults";
|
||||||
|
Loading…
Reference in New Issue
Block a user