mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 07:53:08 +02: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");
|
Script.include("libraries/gridTool.js");
|
||||||
var grid = Grid();
|
var grid = Grid();
|
||||||
gridTool = GridTool({ horizontalGrid: grid });
|
gridTool = GridTool({ horizontalGrid: grid });
|
||||||
|
gridTool.setVisible(false);
|
||||||
|
|
||||||
Script.include("libraries/entityList.js");
|
Script.include("libraries/entityList.js");
|
||||||
var entityListTool = EntityListTool();
|
var entityListTool = EntityListTool();
|
||||||
|
@ -52,8 +53,10 @@ selectionManager.addEventListener(function() {
|
||||||
// Open properties and model list, but force selection of model list tab
|
// Open properties and model list, but force selection of model list tab
|
||||||
propertiesTool.setVisible(false);
|
propertiesTool.setVisible(false);
|
||||||
entityListTool.setVisible(false);
|
entityListTool.setVisible(false);
|
||||||
|
gridTool.setVisible(false);
|
||||||
propertiesTool.setVisible(true);
|
propertiesTool.setVisible(true);
|
||||||
entityListTool.setVisible(true);
|
entityListTool.setVisible(true);
|
||||||
|
gridTool.setVisible(true);
|
||||||
hasShownPropertiesTool = true;
|
hasShownPropertiesTool = true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -239,7 +242,6 @@ var toolBar = (function () {
|
||||||
} else {
|
} else {
|
||||||
hasShownPropertiesTool = false;
|
hasShownPropertiesTool = false;
|
||||||
cameraManager.enable();
|
cameraManager.enable();
|
||||||
gridTool.setVisible(true);
|
|
||||||
grid.setEnabled(true);
|
grid.setEnabled(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue