mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 17:10:41 +02:00
rename a function
This commit is contained in:
parent
f61a005ebc
commit
742cc0f511
5 changed files with 6 additions and 6 deletions
|
@ -30,7 +30,7 @@ public:
|
||||||
QByteArray serialize() const;
|
QByteArray serialize() const;
|
||||||
virtual void deserialize(QByteArray serializedArguments);
|
virtual void deserialize(QByteArray serializedArguments);
|
||||||
|
|
||||||
virtual bool shouldSuppressEdits() { return true; }
|
virtual bool shouldSuppressLocationEdits() { return true; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static const uint16_t holdVersion;
|
static const uint16_t holdVersion;
|
||||||
|
|
|
@ -51,7 +51,7 @@ public:
|
||||||
|
|
||||||
bool locallyAddedButNotYetReceived = false;
|
bool locallyAddedButNotYetReceived = false;
|
||||||
|
|
||||||
virtual bool shouldSuppressEdits() { return false; }
|
virtual bool shouldSuppressLocationEdits() { return false; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual glm::vec3 getPosition() = 0;
|
virtual glm::vec3 getPosition() = 0;
|
||||||
|
|
|
@ -1791,10 +1791,10 @@ QVariantMap EntityItem::getActionArguments(const QUuid& actionID) const {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool EntityItem::shouldSuppressEdits() const {
|
bool EntityItem::shouldSuppressLocationEdits() const {
|
||||||
QHash<QUuid, EntityActionPointer>::const_iterator i = _objectActions.begin();
|
QHash<QUuid, EntityActionPointer>::const_iterator i = _objectActions.begin();
|
||||||
while (i != _objectActions.end()) {
|
while (i != _objectActions.end()) {
|
||||||
if (i.value()->shouldSuppressEdits()) {
|
if (i.value()->shouldSuppressLocationEdits()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
|
|
|
@ -424,7 +424,7 @@ public:
|
||||||
QVariantMap getActionArguments(const QUuid& actionID) const;
|
QVariantMap getActionArguments(const QUuid& actionID) const;
|
||||||
void deserializeActions();
|
void deserializeActions();
|
||||||
void setActionDataDirty(bool value) const { _actionDataDirty = value; }
|
void setActionDataDirty(bool value) const { _actionDataDirty = value; }
|
||||||
bool shouldSuppressEdits() const;
|
bool shouldSuppressLocationEdits() const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
|
|
@ -291,7 +291,7 @@ bool EntityMotionState::remoteSimulationOutOfSync(uint32_t simulationStep) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_entity->shouldSuppressEdits()) {
|
if (_entity->shouldSuppressLocationEdits()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue