fix: deletedShape animation curves are retained in final avatar animations

This results in downstream tools such as AAO improperly treating these objects as animated.
This commit is contained in:
bd_ 2025-01-24 18:29:00 -08:00
parent 129ad4dc35
commit 18569ab556

View File

@ -286,6 +286,15 @@ namespace nadena.dev.modular_avatar.core.editor
});
}
}
// Remove all deletedShape. props to avoid creating animator noise that'll confuse tools like AAO
foreach (var key in shapes.Keys.ToList())
{
if (key.PropertyName.StartsWith(ReactiveObjectAnalyzer.DeletedShapePrefix))
{
shapes.Remove(key);
}
}
}
#endregion