From c17a603714bbe222e84e195d61f4987bebdb921f Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Thu, 23 Jul 2015 08:42:29 -0700 Subject: [PATCH] Fix model entity not showing up in list on creation --- examples/edit.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/edit.js b/examples/edit.js index b33f47c2b7..1af016958f 100644 --- a/examples/edit.js +++ b/examples/edit.js @@ -318,11 +318,15 @@ var toolBar = (function () { print("Resize failed: timed out waiting for model (" + url + ") to load"); } } else { - entityProperties.dimensions = naturalDimensions; - Entities.editEntity(entityId, entityProperties); + Entities.editEntity(entityId, { dimensions: naturalDimensions }); + + // Reset selection so that the selection overlays will be updated + selectionManager.setSelections([entityId]); } } + selectionManager.setSelections([entityId]); + Script.setTimeout(resize, RESIZE_INTERVAL); } else { print("Can't add model: Model would be out of bounds.");