From 12f52e8f20f3525586ff0ec351bc46bbac7bc217 Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Thu, 13 Jul 2017 13:18:21 -0700 Subject: [PATCH] don't do SoftAttachmentModel::updateClusterMatrices if geometry isn't ready --- libraries/render-utils/src/SoftAttachmentModel.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/render-utils/src/SoftAttachmentModel.cpp b/libraries/render-utils/src/SoftAttachmentModel.cpp index f15b696006..63b18d49b8 100644 --- a/libraries/render-utils/src/SoftAttachmentModel.cpp +++ b/libraries/render-utils/src/SoftAttachmentModel.cpp @@ -35,6 +35,10 @@ void SoftAttachmentModel::updateClusterMatrices() { if (!_needsUpdateClusterMatrices) { return; } + if (!isLoaded()) { + return; + } + _needsUpdateClusterMatrices = false; const FBXGeometry& geometry = getFBXGeometry();