mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 09:24:00 +02:00
better debugging prints for model joints
This commit is contained in:
parent
768934ae11
commit
ef7438958b
1 changed files with 29 additions and 0 deletions
|
@ -757,6 +757,35 @@ void EntityTree::fixupTerseEditLogging(EntityItemProperties& properties, QList<Q
|
|||
changedProperties[index] = QString("parentJointIndex:") + QString::number((int)value);
|
||||
}
|
||||
}
|
||||
|
||||
if (properties.jointRotationsSetChanged()) {
|
||||
int index = changedProperties.indexOf("jointRotationsSet");
|
||||
if (index >= 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,
|
||||
|
|
Loading…
Reference in a new issue