From 856452405e1145847a4dfdd3f23b286288602fe9 Mon Sep 17 00:00:00 2001 From: Menithal Date: Tue, 5 Sep 2017 08:46:37 +0300 Subject: [PATCH] Made Code abit more concise for better compilation --- .../src/RenderableModelEntityItem.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/libraries/entities-renderer/src/RenderableModelEntityItem.cpp b/libraries/entities-renderer/src/RenderableModelEntityItem.cpp index a08621f827..cc9dcf8ac5 100644 --- a/libraries/entities-renderer/src/RenderableModelEntityItem.cpp +++ b/libraries/entities-renderer/src/RenderableModelEntityItem.cpp @@ -909,13 +909,11 @@ void ModelEntityRenderer::animate(const TypedEntityPointer& entity) { QVector jointsData; const QVector& frames = _animation->getFramesReference(); // NOTE: getFrames() is too heavy - auto& animationGeometry = _animation->getGeometry(); - auto& animationJointNames = animationGeometry.getJointNames(); - auto& fbxJoints = animationGeometry.joints; + QStringList animationJointNames = _animation->getGeometry().getJointNames(); + auto& fbxJoints = _animation->getGeometry().joints; - auto& originalFbx = _model->getFBXGeometry(); - auto& originalFbxJoints = originalFbx.joints; - auto& originalFbxIndices = originalFbx.jointIndices; + auto& originalFbxJoints = _model->getFBXGeometry().joints; + auto& originalFbxIndices = _model->getFBXGeometry().jointIndices; bool allowTranslation = entity->getAnimationAllowTranslation(); int frameCount = frames.size();