From 2c8f1af97dd6e512e31d5700ec383ca89e011cd3 Mon Sep 17 00:00:00 2001 From: Aaro Varis Date: Thu, 6 Mar 2025 21:02:00 +0200 Subject: [PATCH] sync fixes --- BoneSync/Sync/Components/SyncableBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BoneSync/Sync/Components/SyncableBase.cs b/BoneSync/Sync/Components/SyncableBase.cs index d91b82e..c50d1bf 100644 --- a/BoneSync/Sync/Components/SyncableBase.cs +++ b/BoneSync/Sync/Components/SyncableBase.cs @@ -146,6 +146,7 @@ namespace BoneSync.Sync.Components public bool CheckIfShouldAutoSync() { if (InPoolManagerTransform()) return false; + if (!gameObject.activeInHierarchy) return false; if (poolee && poolee.pool) { return true; } @@ -208,7 +209,6 @@ namespace BoneSync.Sync.Components if (spawnFragment) return false; // if has spawn fragment, don't sync FindAndUpdateComponents(); - if (InPoolManagerTransform()) return false; if (rigidbodies.Length > 0) return true; return false;