Fix lasers

This commit is contained in:
David Rowe 2017-10-03 13:33:11 +13:00
parent 0bd67d494d
commit 46ce68a893
2 changed files with 3 additions and 3 deletions

View file

@ -6,8 +6,8 @@
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
// note: this constant is currently duplicated in edit.js
EDIT_SETTING = "io.highfidelity.isEditting";
// note: this constant is currently duplicated in edit.js and ambientSounds.js
EDIT_SETTING = "io.highfidelity.isEditing";
isInEditMode = function isInEditMode() {
return Settings.getValue(EDIT_SETTING);
};

View file

@ -139,7 +139,7 @@
this._toggle = function(hint) {
// Toggle between ON/OFF state, but only if not in edit mode
if (Settings.getValue("io.highfidelity.isEditting")) {
if (Settings.getValue("io.highfidelity.isEditing")) {
return;
}
var props = Entities.getEntityProperties(entity, [ "userData" ]);