mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 19:04:32 +02:00
don't send physical property updates if there's an action on the object
This commit is contained in:
parent
7c52849740
commit
83780296de
3 changed files with 13 additions and 0 deletions
|
@ -1788,3 +1788,11 @@ QVariantMap EntityItem::getActionArguments(const QUuid& actionID) const {
|
|||
|
||||
return result;
|
||||
}
|
||||
|
||||
bool EntityItem::shouldSuppressEdits() const {
|
||||
QHash<QUuid, EntityActionPointer>::const_iterator i = _objectActions.begin();
|
||||
while (i != _objectActions.end()) {
|
||||
// XXX
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -424,6 +424,7 @@ public:
|
|||
QVariantMap getActionArguments(const QUuid& actionID) const;
|
||||
void deserializeActions();
|
||||
void setActionDataDirty(bool value) const { _actionDataDirty = value; }
|
||||
bool shouldSuppressEdits() const;
|
||||
|
||||
protected:
|
||||
|
||||
|
|
|
@ -291,6 +291,10 @@ bool EntityMotionState::remoteSimulationOutOfSync(uint32_t simulationStep) {
|
|||
return true;
|
||||
}
|
||||
|
||||
if (_entity->shouldSuppressEdits()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Else we measure the error between current and extrapolated transform (according to expected behavior
|
||||
// of remote EntitySimulation) and return true if the error is significant.
|
||||
|
||||
|
|
Loading…
Reference in a new issue