mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 03:08:00 +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";
|
Camera.mode = "independent";
|
||||||
|
|
||||||
that.updateCamera();
|
that.updateCamera();
|
||||||
|
|
||||||
|
cameraTool.setVisible(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
that.disable = function(ignoreCamera) {
|
that.disable = function(ignoreCamera) {
|
||||||
|
@ -115,6 +117,7 @@ CameraManager = function() {
|
||||||
if (!ignoreCamera) {
|
if (!ignoreCamera) {
|
||||||
Camera.mode = that.previousCameraMode;
|
Camera.mode = that.previousCameraMode;
|
||||||
}
|
}
|
||||||
|
cameraTool.setVisible(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
that.focus = function(position, dimensions, easeOrientation) {
|
that.focus = function(position, dimensions, easeOrientation) {
|
||||||
|
|
Loading…
Reference in a new issue