mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 09:44:21 +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;
|
||||
virtual void deserialize(QByteArray serializedArguments);
|
||||
|
||||
virtual bool shouldSuppressEdits() { return true; }
|
||||
virtual bool shouldSuppressLocationEdits() { return true; }
|
||||
|
||||
private:
|
||||
static const uint16_t holdVersion;
|
||||
|
|
|
@ -51,7 +51,7 @@ public:
|
|||
|
||||
bool locallyAddedButNotYetReceived = false;
|
||||
|
||||
virtual bool shouldSuppressEdits() { return false; }
|
||||
virtual bool shouldSuppressLocationEdits() { return false; }
|
||||
|
||||
protected:
|
||||
virtual glm::vec3 getPosition() = 0;
|
||||
|
|
|
@ -1791,10 +1791,10 @@ QVariantMap EntityItem::getActionArguments(const QUuid& actionID) const {
|
|||
return result;
|
||||
}
|
||||
|
||||
bool EntityItem::shouldSuppressEdits() const {
|
||||
bool EntityItem::shouldSuppressLocationEdits() const {
|
||||
QHash<QUuid, EntityActionPointer>::const_iterator i = _objectActions.begin();
|
||||
while (i != _objectActions.end()) {
|
||||
if (i.value()->shouldSuppressEdits()) {
|
||||
if (i.value()->shouldSuppressLocationEdits()) {
|
||||
return true;
|
||||
}
|
||||
i++;
|
||||
|
|
|
@ -424,7 +424,7 @@ public:
|
|||
QVariantMap getActionArguments(const QUuid& actionID) const;
|
||||
void deserializeActions();
|
||||
void setActionDataDirty(bool value) const { _actionDataDirty = value; }
|
||||
bool shouldSuppressEdits() const;
|
||||
bool shouldSuppressLocationEdits() const;
|
||||
|
||||
protected:
|
||||
|
||||
|
|
|
@ -291,7 +291,7 @@ bool EntityMotionState::remoteSimulationOutOfSync(uint32_t simulationStep) {
|
|||
return true;
|
||||
}
|
||||
|
||||
if (_entity->shouldSuppressEdits()) {
|
||||
if (_entity->shouldSuppressLocationEdits()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue