Fix handling end of archive

This commit is contained in:
2020-12-29 15:52:36 +01:00
parent e9c87fe9d4
commit e33ecbe485
2 changed files with 7 additions and 1 deletions

View File

@@ -109,7 +109,11 @@ namespace openVulkanoCpp
{
m_archiveEntry = nullptr;
}
if (result == ARCHIVE_EOF) m_eof = true;
if (result == ARCHIVE_EOF)
{
m_archiveEntry = nullptr;
m_eof = true;
}
}
size_t ArchiveReader::ExtractRemaining(std::string_view targetDir)

View File

@@ -18,6 +18,8 @@ namespace openVulkanoCpp::Math
Vector3_SIMD<T> m_position;
public:
Pose() {}
Pose(const Quaternion<T>& orientation, const Vector3_SIMD<T>& position)
: m_orientation(orientation), m_position(position)
{}