Merge pull request #7031 from aws-lumberyard-dev/LYN-9321_RequestNetSpawnableErrorFix

Fix Editor Play-Mode RequestNetSpawnable Error
This commit is contained in:
Gene Walters
2022-01-25 09:52:00 -08:00
committed by GitHub
13 changed files with 1072 additions and 7 deletions
@@ -542,7 +542,7 @@ namespace Multiplayer
optionalArgs.m_preInsertionCallback = [netSpawnableName, rootTransform = transform]
(AzFramework::EntitySpawnTicket::Id, AzFramework::SpawnableEntityContainerView entities)
{
bool shouldUpdateTransform = (rootTransform.IsClose(AZ::Transform::Identity()) == false);
const bool shouldUpdateTransform = !rootTransform.IsClose(AZ::Transform::Identity());
for (uint32_t netEntityIndex = 0, entitiesSize = aznumeric_cast<uint32_t>(entities.size());
netEntityIndex < entitiesSize; ++netEntityIndex)