mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 13:53:26 +02:00
checkpoint
This commit is contained in:
parent
831d01c23a
commit
09a57efaf3
1 changed files with 4 additions and 2 deletions
|
@ -932,6 +932,7 @@ bool EntityTree::filterProperties(const EntityItemProperties& propertiesIn, Enti
|
|||
return true; // allowed
|
||||
}
|
||||
QScriptValue inputValues = propertiesIn.copyToScriptValue(&_entityEditFilterEngine, true, true);
|
||||
qDebug() << "input" << propertiesIn << inputValues.toVariant();
|
||||
QScriptValueList args;
|
||||
args << inputValues;
|
||||
|
||||
|
@ -1032,8 +1033,9 @@ int EntityTree::processEditPacketData(ReceivedMessage& message, const unsigned c
|
|||
bool wasChanged = false;
|
||||
bool allowed = filterProperties(properties, properties, wasChanged);
|
||||
if (!allowed) {
|
||||
properties = EntityItemProperties(); // Maybe other behavior
|
||||
} else if (wasChanged) {
|
||||
properties = EntityItemProperties();
|
||||
}
|
||||
if (!allowed || wasChanged) {
|
||||
if (properties.getLastEdited() == UNKNOWN_CREATED_TIME) {
|
||||
properties.setLastEdited(usecTimestampNow());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue