From a2d21ed5cbf78cb2d202673b78ac3245a684dc79 Mon Sep 17 00:00:00 2001 From: "James B. Pollack" Date: Mon, 28 Dec 2015 21:42:54 -0800 Subject: [PATCH] Update doppelganger.js delete correct id --- examples/example/avatarcontrol/doppelganger.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/example/avatarcontrol/doppelganger.js b/examples/example/avatarcontrol/doppelganger.js index ed4079a211..f5878f0763 100644 --- a/examples/example/avatarcontrol/doppelganger.js +++ b/examples/example/avatarcontrol/doppelganger.js @@ -124,7 +124,7 @@ function cleanup() { disconnectDoppelgangerUpdates(); doppelgangers.forEach(function(doppelganger) { - Entities.deleteEntity(doppelganger); + Entities.deleteEntity(doppelganger.id); }); } @@ -133,4 +133,4 @@ Script.scriptEnding.connect(cleanup); // APPEND_ENTITY_PROPERTY(PROP_JOINT_ROTATIONS_SET, getJointRotationsSet()); // APPEND_ENTITY_PROPERTY(PROP_JOINT_ROTATIONS, getJointRotations()); // APPEND_ENTITY_PROPERTY(PROP_JOINT_TRANSLATIONS_SET, getJointTranslationsSet()); -// APPEND_ENTITY_PROPERTY(PROP_JOINT_TRANSLATIONS, getJointTranslations()); \ No newline at end of file +// APPEND_ENTITY_PROPERTY(PROP_JOINT_TRANSLATIONS, getJointTranslations());