mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-02-06 13:52:49 +08:00
fix: proxy animations not being preserved
This commit is contained in:
parent
1f313de484
commit
512a7b9995
@ -173,7 +173,8 @@ namespace nadena.dev.ndmf.animation
|
||||
// 3. VCC based installations of the VRCSDK
|
||||
// 4. Very old VCC based installations of the VRCSDK where proxy animations were copied into Assets
|
||||
return path.Contains("/AV3 Demo Assets/Animation/ProxyAnim/proxy")
|
||||
|| path.Contains("/VRCSDK/Examples3/Animation/ProxyAnim/proxy");
|
||||
|| path.Contains("/VRCSDK/Examples3/Animation/ProxyAnim/proxy")
|
||||
|| path.StartsWith("Packages/com.vrchat.");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -272,6 +272,8 @@ namespace nadena.dev.ndmf.animation
|
||||
if (originalClip == null) return null;
|
||||
if (clipCache != null && clipCache.TryGetValue(originalClip, out var cachedClip)) return cachedClip;
|
||||
|
||||
if (originalClip.IsProxyAnimation()) return originalClip;
|
||||
|
||||
var newClip = new AnimationClip();
|
||||
newClip.name = originalClip.name;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user