From ee190db5eb8fa4bbbd416b9a8fe6fde32a633e37 Mon Sep 17 00:00:00 2001 From: "James B. Pollack" Date: Thu, 25 Aug 2016 16:27:58 -0700 Subject: [PATCH] some comments --- scripts/system/edit.js | 1 + scripts/system/html/js/entityProperties.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/scripts/system/edit.js b/scripts/system/edit.js index 1727857ee8..84afca4a01 100644 --- a/scripts/system/edit.js +++ b/scripts/system/edit.js @@ -1423,6 +1423,7 @@ var PropertiesTool = function (opts) { pushCommandForSelections(); selectionManager._update(); } else if(data.type === 'saveUserData'){ + //the event bridge and json parsing handle our avatar id string differently. var actualID = data.id.split('"')[1] var success = Entities.editEntity(actualID, data.properties) } else if (data.type === "showMarketplace") { diff --git a/scripts/system/html/js/entityProperties.js b/scripts/system/html/js/entityProperties.js index 6337ef00af..8ce3fbbe00 100644 --- a/scripts/system/html/js/entityProperties.js +++ b/scripts/system/html/js/entityProperties.js @@ -758,9 +758,11 @@ function loaded() { } else { properties = data.selections[0].properties; + if (lastEntityID !== '"' + properties.id + '"' && lastEntityID !== null && editor !== null) { saveJSONUserData(true); } + //the event bridge and json parsing handle our avatar id string differently. lastEntityID = '"' + properties.id + '"'; elID.innerHTML = properties.id;