Fix merging of material swap animations (#109)

This commit is contained in:
bd_ 2022-11-29 09:58:03 -08:00 committed by GitHub
parent 2ff25eb94a
commit 072b5c1ff1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -231,6 +231,13 @@ namespace nadena.dev.modular_avatar.core.editor
{
if (original == null) return null;
switch (original)
{
case Texture _:
case Material _:
return original;
}
if (cloneMap == null) cloneMap = new Dictionary<Object, Object>();
if (cloneMap.ContainsKey(original))