Merge pull request #5497 from aws-lumberyard-dev/viewport/select_rect_fix

Fix attempted rendering of invalid Entity selection boxes.
monroegm-disable-blank-issue-2
jonawals 4 years ago committed by GitHub
commit f564903f37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1178,8 +1178,10 @@ namespace AzToolsFramework
continue;
}
const AZ::Aabb bound = CalculateEditorEntitySelectionBounds(entityId, viewportInfo);
debugDisplay.DrawSolidBox(bound.GetMin(), bound.GetMax());
if (const AZ::Aabb bound = CalculateEditorEntitySelectionBounds(entityId, viewportInfo); bound.IsValid())
{
debugDisplay.DrawSolidBox(bound.GetMin(), bound.GetMax());
}
}
debugDisplay.DepthTestOn();

Loading…
Cancel
Save