Fix natural dimensions check

This commit is contained in:
Ryan Huffman 2015-02-13 15:02:16 -08:00
parent 0495833ca6
commit 2df850eb8d

View file

@ -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 {