Signed-off-by: AMZN-Olex <5432499+AMZN-Olex@users.noreply.github.com>
This commit is contained in:
AMZN-Olex
2021-09-15 18:49:24 -04:00
parent 2637fa45b8
commit 2be5854beb
2 changed files with 6 additions and 13 deletions
@@ -417,14 +417,14 @@ namespace Multiplayer
if (hierarchyChildComponent == nullptr)
{
// child and root hierarchy components are mutually exclusive
// Child and root hierarchy components are mutually exclusive
hierarchyRootComponent = entity->FindComponent<NetworkHierarchyRootComponent>();
}
if ((hierarchyChildComponent && hierarchyChildComponent->IsHierarchicalChild())
|| (hierarchyRootComponent && hierarchyRootComponent->IsHierarchicalChild()))
{
// if hierarchy is enabled for the entity, check if the parent is available
// If hierarchy is enabled for the entity, check if the parent is available
if (const NetworkTransformComponent* networkTransform = entity->FindComponent<NetworkTransformComponent>())
{
const NetEntityId parentId = networkTransform->GetParentEntityId();