From 1fdf1f7b45d1c45161399881810aa2f8fbcd3ad3 Mon Sep 17 00:00:00 2001 From: Matchu Date: Wed, 22 Feb 2012 22:10:39 -0600 Subject: [PATCH] fix bug with image export depth Was sorting SWFs into layers by zone_id, not depth. Oops. --- public/javascripts/wardrobe.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/javascripts/wardrobe.js b/public/javascripts/wardrobe.js index d2a633b7..179ae3c5 100644 --- a/public/javascripts/wardrobe.js +++ b/public/javascripts/wardrobe.js @@ -1306,7 +1306,7 @@ Wardrobe.getStandardView = function (options) { // order. var assets = wardrobe.outfit.getVisibleAssets().slice(0); assets.sort(function (a, b) { - return a.zone_id - b.zone_id; + return a.depth - b.depth; }); for(var i = 0; i < assets.length; i++) {