From ef7438958bcfb9d7832d07599186369782b5fdf6 Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Mon, 4 Jan 2016 12:30:55 -0800 Subject: [PATCH] better debugging prints for model joints --- libraries/entities/src/EntityTree.cpp | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/libraries/entities/src/EntityTree.cpp b/libraries/entities/src/EntityTree.cpp index f0a03623c2..51c53a4e93 100644 --- a/libraries/entities/src/EntityTree.cpp +++ b/libraries/entities/src/EntityTree.cpp @@ -757,6 +757,35 @@ void EntityTree::fixupTerseEditLogging(EntityItemProperties& properties, QList= 0) { + auto value = properties.getJointRotationsSet().size(); + changedProperties[index] = QString("jointRotationsSet:") + QString::number((int)value); + } + } + if (properties.jointRotationsChanged()) { + int index = changedProperties.indexOf("jointRotations"); + if (index >= 0) { + auto value = properties.getJointRotations().size(); + changedProperties[index] = QString("jointRotations:") + QString::number((int)value); + } + } + if (properties.jointTranslationsSetChanged()) { + int index = changedProperties.indexOf("jointTranslationsSet"); + if (index >= 0) { + auto value = properties.getJointTranslationsSet().size(); + changedProperties[index] = QString("jointTranslationsSet:") + QString::number((int)value); + } + } + if (properties.jointTranslationsChanged()) { + int index = changedProperties.indexOf("jointTranslations"); + if (index >= 0) { + auto value = properties.getJointTranslations().size(); + changedProperties[index] = QString("jointTranslations:") + QString::number((int)value); + } + } } int EntityTree::processEditPacketData(ReceivedMessage& message, const unsigned char* editData, int maxLength,