Merge pull request #10966 from sethalves/fix-softattachment-crash

avoid crash in soft-attachment code
This commit is contained in:
Brad Hefta-Gaub 2017-07-13 15:48:23 -07:00 committed by GitHub
commit b35d696077

View file

@ -35,6 +35,10 @@ void SoftAttachmentModel::updateClusterMatrices() {
if (!_needsUpdateClusterMatrices) { if (!_needsUpdateClusterMatrices) {
return; return;
} }
if (!isLoaded()) {
return;
}
_needsUpdateClusterMatrices = false; _needsUpdateClusterMatrices = false;
const FBXGeometry& geometry = getFBXGeometry(); const FBXGeometry& geometry = getFBXGeometry();