mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 12:04:18 +02:00
quiet some debugging
This commit is contained in:
parent
d72152da87
commit
9937b6a3ef
2 changed files with 3 additions and 11 deletions
|
@ -211,9 +211,11 @@ void AvatarActionHold::deserialize(QByteArray serializedArguments) {
|
|||
dataStream >> _expires;
|
||||
dataStream >> _tag;
|
||||
|
||||
qDebug() << "deserialize hold: " << _holderID
|
||||
#if WANT_DEBUG
|
||||
qDebug() << "deserialize AvatarActionHold: " << _holderID
|
||||
<< _relativePosition.x << _relativePosition.y << _relativePosition.z
|
||||
<< _hand << _expires;
|
||||
#endif
|
||||
|
||||
_active = true;
|
||||
});
|
||||
|
|
|
@ -1580,8 +1580,6 @@ bool EntityItem::removeActionInternal(const QUuid& actionID, EntitySimulation* s
|
|||
|
||||
EntityActionPointer action = _objectActions[actionID];
|
||||
|
||||
qDebug() << "EntityItem::removeActionInternal clearing _ownerEntity";
|
||||
|
||||
action->setOwnerEntity(nullptr);
|
||||
_objectActions.remove(actionID);
|
||||
|
||||
|
@ -1604,7 +1602,6 @@ bool EntityItem::clearActions(EntitySimulation* simulation) {
|
|||
const QUuid id = i.key();
|
||||
EntityActionPointer action = _objectActions[id];
|
||||
i = _objectActions.erase(i);
|
||||
qDebug() << "EntityItem::clearActions clearing _ownerEntity";
|
||||
action->setOwnerEntity(nullptr);
|
||||
action->removeFromSimulation(simulation);
|
||||
}
|
||||
|
@ -1648,8 +1645,6 @@ void EntityItem::deserializeActionsInternal() {
|
|||
// Keep track of which actions got added or updated by the new actionData
|
||||
QSet<QUuid> updated;
|
||||
|
||||
qDebug() << "EntityItem::deserializeActionsInternal" << serializedActions.size();
|
||||
|
||||
foreach(QByteArray serializedAction, serializedActions) {
|
||||
QDataStream serializedActionStream(serializedAction);
|
||||
EntityActionType actionType;
|
||||
|
@ -1663,14 +1658,12 @@ void EntityItem::deserializeActionsInternal() {
|
|||
updated << actionID;
|
||||
|
||||
if (_objectActions.contains(actionID)) {
|
||||
qDebug() << "EntityItem::deserializeActionsInternal is UPDATING" << actionID;
|
||||
EntityActionPointer action = _objectActions[actionID];
|
||||
// TODO: make sure types match? there isn't currently a way to
|
||||
// change the type of an existing action.
|
||||
action->deserialize(serializedAction);
|
||||
action->locallyAddedButNotYetReceived = false;
|
||||
} else {
|
||||
qDebug() << "EntityItem::deserializeActionsInternal is ADDING" << actionID;
|
||||
auto actionFactory = DependencyManager::get<EntityActionFactoryInterface>();
|
||||
EntityItemPointer entity = shared_from_this();
|
||||
EntityActionPointer action = actionFactory->factoryBA(entity, serializedAction);
|
||||
|
@ -1728,11 +1721,8 @@ void EntityItem::setActionData(QByteArray actionData) {
|
|||
void EntityItem::setActionDataInternal(QByteArray actionData) {
|
||||
assertWriteLocked();
|
||||
if (_allActionsDataCache != actionData) {
|
||||
qDebug() << "EntityItem::setActionDataInternal yes";
|
||||
_allActionsDataCache = actionData;
|
||||
deserializeActionsInternal();
|
||||
} else {
|
||||
qDebug() << "EntityItem::setActionDataInternal no";
|
||||
}
|
||||
checkWaitingToRemove();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue