mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-06 14:45:06 +08:00
Fix merging of material swap animations (#109)
This commit is contained in:
parent
2ff25eb94a
commit
072b5c1ff1
@ -231,6 +231,13 @@ namespace nadena.dev.modular_avatar.core.editor
|
|||||||
{
|
{
|
||||||
if (original == null) return null;
|
if (original == null) return null;
|
||||||
|
|
||||||
|
switch (original)
|
||||||
|
{
|
||||||
|
case Texture _:
|
||||||
|
case Material _:
|
||||||
|
return original;
|
||||||
|
}
|
||||||
|
|
||||||
if (cloneMap == null) cloneMap = new Dictionary<Object, Object>();
|
if (cloneMap == null) cloneMap = new Dictionary<Object, Object>();
|
||||||
|
|
||||||
if (cloneMap.ContainsKey(original))
|
if (cloneMap.ContainsKey(original))
|
||||||
|
Loading…
Reference in New Issue
Block a user