chore: use forceRenderingOff for ProxyManager (#734)

Thanks to @TCL987 for the suggestion!
This commit is contained in:
bd_ 2024-03-06 00:16:48 -08:00 committed by GitHub
parent 42477aae45
commit 73c9d7bfff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -280,7 +280,7 @@ namespace nadena.dev.modular_avatar.core
CopyRendererStates(original, proxy);
statesToRestore.Add((original, original.enabled));
original.enabled = false;
original.forceRenderingOff = true;
}
}
}
@ -328,7 +328,7 @@ namespace nadena.dev.modular_avatar.core
{
foreach (var (original, state) in statesToRestore)
{
original.enabled = state;
original.forceRenderingOff = false;
}
statesToRestore.Clear();