From 2df850eb8d75bd88aed5eec157a41618566cb437 Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Fri, 13 Feb 2015 15:02:16 -0800 Subject: [PATCH] Fix natural dimensions check --- examples/editEntities.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/editEntities.js b/examples/editEntities.js index f0bb123e96..b9e594a1c1 100644 --- a/examples/editEntities.js +++ b/examples/editEntities.js @@ -961,7 +961,7 @@ PropertiesTool = function(opts) { // If any of the natural dimensions are not 0, resize if (properties.type == "Model" && naturalDimensions.x == 0 - && naturalDimensions.y == 0 || naturalDimensions.z == 0) { + && naturalDimensions.y == 0 && naturalDimensions.z == 0) { Window.alert("Cannot reset entity to its natural dimensions: Model URL" + " is invalid or the model has not yet been loaded."); } else {