Merge pull request #5586 from aws-lumberyard-dev/IMGUI_EntityOutlinerFix

Fixed IMGUI Entity Outliner to show net entities
This commit is contained in:
SergeyAMZN
2021-11-15 14:23:10 +00:00
committed by GitHub
2 changed files with 20 additions and 2 deletions
@@ -534,7 +534,7 @@ namespace AzFramework
void TransformComponent::SetParentImpl(AZ::EntityId parentId, bool isKeepWorldTM)
{
if (parentId == GetEntityId())
if (GetEntity() && parentId == GetEntityId())
{
AZ_Warning("TransformComponent", false, "An entity can not be set as its own parent.");
return;