mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
Update enabled_edit to only get sent when you have permission
This commit is contained in:
parent
56c84bbc27
commit
bce05df56b
1 changed files with 1 additions and 3 deletions
|
@ -340,6 +340,7 @@ var toolBar = (function() {
|
|||
Messages.sendLocalMessage("edit-events", JSON.stringify({
|
||||
enabled: active
|
||||
}));
|
||||
UserActivityLogger.logAction("enabled_edit");
|
||||
isActive = active;
|
||||
if (!isActive) {
|
||||
entityListTool.setVisible(false);
|
||||
|
@ -360,9 +361,6 @@ var toolBar = (function() {
|
|||
}
|
||||
that.showTools(isActive);
|
||||
}
|
||||
if (active) {
|
||||
UserActivityLogger.logAction("enabled_edit");
|
||||
}
|
||||
}
|
||||
toolBar.selectTool(activeButton, isActive);
|
||||
lightOverlayManager.setVisible(isActive && Menu.isOptionChecked(MENU_SHOW_LIGHTS_IN_EDIT_MODE));
|
||||
|
|
Loading…
Reference in a new issue