mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 22:36:57 +02:00
fix subproperty updates
This commit is contained in:
parent
859c0f3389
commit
ec4726ad15
1 changed files with 4 additions and 1 deletions
|
@ -1668,7 +1668,10 @@ function updateProperty(originalPropertyName, propertyValue, isParticleProperty)
|
||||||
});
|
});
|
||||||
particleSyncDebounce();
|
particleSyncDebounce();
|
||||||
} else {
|
} else {
|
||||||
let onlyUpdateEntity = properties[originalPropertyName].dragging === true;
|
// only update the entity property value itself if in the middle of dragging
|
||||||
|
// prevent undo command push, saving new property values, and property update
|
||||||
|
// callback until drag is complete (additional update sent via dragEnd callback)
|
||||||
|
let onlyUpdateEntity = properties[originalPropertyName] && properties[originalPropertyName].dragging === true;
|
||||||
updateProperties(propertyUpdate, onlyUpdateEntity);
|
updateProperties(propertyUpdate, onlyUpdateEntity);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue