From cce6132a07d7cf9773ff4070e80dbd2915c27eb9 Mon Sep 17 00:00:00 2001 From: Atlante45 Date: Wed, 25 Jun 2014 11:50:30 -0700 Subject: [PATCH] Add sitting points to the model properties display --- examples/editModels.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/examples/editModels.js b/examples/editModels.js index f2b76a28c3..64c203534c 100644 --- a/examples/editModels.js +++ b/examples/editModels.js @@ -752,7 +752,16 @@ function Tooltip() { text += "ID: " + properties.id + "\n" text += "model url: " + properties.modelURL + "\n" text += "animation url: " + properties.animationURL + "\n" - + if (properties.sittingPoints.length > 0) { + text += properties.sittingPoints.length + " sitting points: " + for (var i = 0; i < properties.sittingPoints.length; ++i) { + text += properties.sittingPoints[i].name + " " + } + } else { + text += "No sitting points" + } + + Overlays.editOverlay(this.textOverlay, { text: text }); }