mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 14:29:13 +02:00
use new feature for getEntityUserData
This commit is contained in:
parent
d0a4622427
commit
0811da14b8
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ setEntityUserData = function(id, data) {
|
||||||
// FIXME do non-destructive modification of the existing user data
|
// FIXME do non-destructive modification of the existing user data
|
||||||
getEntityUserData = function(id) {
|
getEntityUserData = function(id) {
|
||||||
var results = null;
|
var results = null;
|
||||||
var properties = Entities.getEntityProperties(id);
|
var properties = Entities.getEntityProperties(id, "userData");
|
||||||
if (properties.userData) {
|
if (properties.userData) {
|
||||||
try {
|
try {
|
||||||
results = JSON.parse(properties.userData);
|
results = JSON.parse(properties.userData);
|
||||||
|
|
Loading…
Reference in a new issue