Fix properties window to work with undo/redo

This commit is contained in:
Ryan Huffman 2014-12-12 15:28:22 -08:00
parent 1a90a81037
commit a5cbc9b3e2

View file

@ -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();
}
});