From 73c9d7bfff8657a730cc6138ea788aacee02e024 Mon Sep 17 00:00:00 2001 From: bd_ Date: Wed, 6 Mar 2024 00:16:48 -0800 Subject: [PATCH] chore: use forceRenderingOff for ProxyManager (#734) Thanks to @TCL987 for the suggestion! --- Runtime/ScaleAdjuster/ProxyManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/ScaleAdjuster/ProxyManager.cs b/Runtime/ScaleAdjuster/ProxyManager.cs index 6c22f55e..84749ad8 100644 --- a/Runtime/ScaleAdjuster/ProxyManager.cs +++ b/Runtime/ScaleAdjuster/ProxyManager.cs @@ -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();