mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2024-12-29 18:55:06 +08:00
chore: use forceRenderingOff for ProxyManager (#734)
Thanks to @TCL987 for the suggestion!
This commit is contained in:
parent
42477aae45
commit
73c9d7bfff
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user