From 31823dd28e93e41dcf550ea07a35fbeaaaf5bdc0 Mon Sep 17 00:00:00 2001 From: deathcap Date: Wed, 11 Dec 2013 20:11:52 -0800 Subject: [PATCH] Fix getMesh() for atlases, can now use atlas and simple textures from the same API --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 274ce55..8524054 100644 --- a/index.js +++ b/index.js @@ -113,7 +113,7 @@ Texture.prototype.load = function(names, done) { }; Texture.prototype.getMesh = function() { - return this.materials.material; + return this.material; } Texture.prototype.pack = function(name, done) {