mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Update when grid tool window is shown
This commit is contained in:
parent
c00346e8cb
commit
eb69720af4
1 changed files with 3 additions and 1 deletions
|
@ -38,6 +38,7 @@ var cameraManager = new CameraManager();
|
|||
Script.include("libraries/gridTool.js");
|
||||
var grid = Grid();
|
||||
gridTool = GridTool({ horizontalGrid: grid });
|
||||
gridTool.setVisible(false);
|
||||
|
||||
Script.include("libraries/entityList.js");
|
||||
var entityListTool = EntityListTool();
|
||||
|
@ -52,8 +53,10 @@ selectionManager.addEventListener(function() {
|
|||
// Open properties and model list, but force selection of model list tab
|
||||
propertiesTool.setVisible(false);
|
||||
entityListTool.setVisible(false);
|
||||
gridTool.setVisible(false);
|
||||
propertiesTool.setVisible(true);
|
||||
entityListTool.setVisible(true);
|
||||
gridTool.setVisible(true);
|
||||
hasShownPropertiesTool = true;
|
||||
}
|
||||
});
|
||||
|
@ -239,7 +242,6 @@ var toolBar = (function () {
|
|||
} else {
|
||||
hasShownPropertiesTool = false;
|
||||
cameraManager.enable();
|
||||
gridTool.setVisible(true);
|
||||
grid.setEnabled(true);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue