mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
* BugFix: Correct an ASAN memory access error in TSShapeEdit caused by reading a reference from the same vector we are pushing to at the same time.
This commit is contained in:
parent
a0e0e1f220
commit
2eefb4972f
1 changed files with 4 additions and 2 deletions
|
|
@ -1584,7 +1584,8 @@ bool TSShape::addSequence(const Torque::Path& path, const String& fromSeq,
|
||||||
offset = srcShape->groundTranslations.size() - 1;
|
offset = srcShape->groundTranslations.size() - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
groundTranslations.push_back(srcShape->groundTranslations[offset]);
|
const Point3F pointValueToCopy = srcShape->groundTranslations[offset];
|
||||||
|
groundTranslations.push_back(pointValueToCopy);
|
||||||
|
|
||||||
S32 offset2 = groundBase + i;
|
S32 offset2 = groundBase + i;
|
||||||
if (offset2 >= srcShape->groundRotations.size())
|
if (offset2 >= srcShape->groundRotations.size())
|
||||||
|
|
@ -1593,7 +1594,8 @@ bool TSShape::addSequence(const Torque::Path& path, const String& fromSeq,
|
||||||
offset2 = srcShape->groundRotations.size() - 1;
|
offset2 = srcShape->groundRotations.size() - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
groundRotations.push_back(srcShape->groundRotations[offset2]);
|
const Quat16 quatValueToCopy = srcShape->groundRotations[offset2];
|
||||||
|
groundRotations.push_back(quatValueToCopy);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add triggers
|
// Add triggers
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue