diff options
| -rwxr-xr-x | sdk/extensions/serialization/source/DTO/TkAssetJointDescDTO.cpp | 1 | ||||
| -rwxr-xr-x | sdk/toolkit/source/NvBlastTkGroupImpl.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sdk/extensions/serialization/source/DTO/TkAssetJointDescDTO.cpp b/sdk/extensions/serialization/source/DTO/TkAssetJointDescDTO.cpp index ec6d489..005b36e 100755 --- a/sdk/extensions/serialization/source/DTO/TkAssetJointDescDTO.cpp +++ b/sdk/extensions/serialization/source/DTO/TkAssetJointDescDTO.cpp @@ -39,6 +39,7 @@ bool TkAssetJointDescDTO::serialize(Nv::Blast::Serialization::TkAssetJointDesc:: {
kj::ArrayPtr<const uint32_t> nodeIndices(poco->nodeIndices, 2);
builder.setNodeIndices(nodeIndices);
+ builder.initAttachPositions(2);
for (int i = 0; i < 2; i++)
{
diff --git a/sdk/toolkit/source/NvBlastTkGroupImpl.cpp b/sdk/toolkit/source/NvBlastTkGroupImpl.cpp index c3cbd5e..19f9747 100755 --- a/sdk/toolkit/source/NvBlastTkGroupImpl.cpp +++ b/sdk/toolkit/source/NvBlastTkGroupImpl.cpp @@ -293,9 +293,9 @@ bool TkGroupImpl::removeActor(TkActor& actor) {
uint32_t index = tkActor.m_groupJobIndex;
tkActor.m_groupJobIndex = invalidIndex<uint32_t>();
- m_jobs.replaceWithLast(index);
if (index < m_jobs.size())
{
+ m_jobs.replaceWithLast(index);
NVBLAST_ASSERT(m_jobs[index].m_tkActor->m_groupJobIndex == m_jobs.size());
NVBLAST_ASSERT(m_jobs[index].m_tkActor->isPending());
m_jobs[index].m_tkActor->m_groupJobIndex = index;
|