Skip to content

Commit e1b2a4c

Browse files
committed
clean up
1 parent 4fb8d37 commit e1b2a4c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

com.unity.netcode.gameobjects/Runtime/Core/NetworkObject.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2230,7 +2230,6 @@ internal bool InternalTrySetParent(NetworkObject parent, bool worldPositionStays
22302230
}
22312231

22322232
m_CachedWorldPositionStays = worldPositionStays;
2233-
if (parent == null)
22342233
CurrentParent = parent;
22352234
transform.SetParent(CurrentParent?.transform, worldPositionStays);
22362235

0 commit comments

Comments
 (0)