sync fixes

This commit is contained in:
2025-03-06 21:02:00 +02:00
parent 44776c3499
commit 2c8f1af97d

View File

@@ -146,6 +146,7 @@ namespace BoneSync.Sync.Components
public bool CheckIfShouldAutoSync() public bool CheckIfShouldAutoSync()
{ {
if (InPoolManagerTransform()) return false; if (InPoolManagerTransform()) return false;
if (!gameObject.activeInHierarchy) return false;
if (poolee && poolee.pool) { if (poolee && poolee.pool) {
return true; return true;
} }
@@ -208,7 +209,6 @@ namespace BoneSync.Sync.Components
if (spawnFragment) return false; // if has spawn fragment, don't sync if (spawnFragment) return false; // if has spawn fragment, don't sync
FindAndUpdateComponents(); FindAndUpdateComponents();
if (InPoolManagerTransform()) return false;
if (rigidbodies.Length > 0) return true; if (rigidbodies.Length > 0) return true;
return false; return false;