Skip to content

Commit 7a68824

Browse files
authored
Fix handling of 'z' column (#84)
Signed-off-by: Michał Pełka <[email protected]>
1 parent 136c277 commit 7a68824

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Gems/CsvSpawner/Code/Source/CsvSpawner/CsvSpawnerCsvParser.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ namespace CsvSpawner::CsvSpawnerUtils
7373
// handle Z column
7474
if (index_Z)
7575
{
76-
info.m_transform.SetTranslation(
77-
AZ::Vector3(row[index_X.value()].get<float>(), row[index_Y.value()].get<float>(), 0));
76+
info.m_transform.SetTranslation(AZ::Vector3(
77+
row[index_X.value()].get<float>(), row[index_Y.value()].get<float>(), row[index_Z.value()].get<float>()));
7878
}
7979
else
8080
{
81-
info.m_transform.SetTranslation(AZ::Vector3(
82-
row[index_X.value()].get<float>(), row[index_Y.value()].get<float>(), row[index_Z.value()].get<float>()));
81+
info.m_transform.SetTranslation(
82+
AZ::Vector3(row[index_X.value()].get<float>(), row[index_Y.value()].get<float>(), 0));
8383
}
8484
}
8585
else if (isWGSCoordinates)

0 commit comments

Comments
 (0)