mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 22:51:20 +02:00
Fix entity tools focus not always using latest entity position
This commit is contained in:
parent
0326ec2aa9
commit
5139914ba9
1 changed files with 3 additions and 1 deletions
|
@ -648,7 +648,9 @@ Controller.keyReleaseEvent.connect(function (event) {
|
||||||
handeMenuEvent("Delete");
|
handeMenuEvent("Delete");
|
||||||
} else if (event.text == "f") {
|
} else if (event.text == "f") {
|
||||||
if (entitySelected) {
|
if (entitySelected) {
|
||||||
entityCameraTool.focus(selectedEntityProperties);
|
// Get latest properties
|
||||||
|
var properties = Entities.getEntityProperties(selectedEntityID);
|
||||||
|
entityCameraTool.focus(properties);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue