mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 11:53:28 +02:00
Update camera tool to only show when edit entities is enabled
This commit is contained in:
parent
80351a768e
commit
aad49e4404
1 changed files with 3 additions and 0 deletions
|
@ -105,6 +105,8 @@ CameraManager = function() {
|
|||
Camera.mode = "independent";
|
||||
|
||||
that.updateCamera();
|
||||
|
||||
cameraTool.setVisible(true);
|
||||
}
|
||||
|
||||
that.disable = function(ignoreCamera) {
|
||||
|
@ -115,6 +117,7 @@ CameraManager = function() {
|
|||
if (!ignoreCamera) {
|
||||
Camera.mode = that.previousCameraMode;
|
||||
}
|
||||
cameraTool.setVisible(false);
|
||||
}
|
||||
|
||||
that.focus = function(position, dimensions, easeOrientation) {
|
||||
|
|
Loading…
Reference in a new issue