mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 07:47:30 +02:00
Fix properties window to work with undo/redo
This commit is contained in:
parent
1a90a81037
commit
a5cbc9b3e2
1 changed files with 2 additions and 0 deletions
|
@ -1014,11 +1014,13 @@ PropertiesTool = function(opts) {
|
|||
print(data);
|
||||
data = JSON.parse(data);
|
||||
if (data.type == "update") {
|
||||
selectionManager.saveProperties();
|
||||
if (data.properties.rotation !== undefined) {
|
||||
var rotation = data.properties.rotation;
|
||||
data.properties.rotation = Quat.fromPitchYawRollDegrees(rotation.x, rotation.y, rotation.z);
|
||||
}
|
||||
Entities.editEntity(selectionManager.selections[0], data.properties);
|
||||
pushCommandForSelections();
|
||||
selectionManager._update();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue