Fix entity tools focus not always using latest entity position

This commit is contained in:
Ryan Huffman 2014-10-16 10:50:42 -07:00
parent 0326ec2aa9
commit 5139914ba9

View file

@ -648,7 +648,9 @@ Controller.keyReleaseEvent.connect(function (event) {
handeMenuEvent("Delete");
} else if (event.text == "f") {
if (entitySelected) {
entityCameraTool.focus(selectedEntityProperties);
// Get latest properties
var properties = Entities.getEntityProperties(selectedEntityID);
entityCameraTool.focus(properties);
}
}
});