repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 094900f3d7b1126075b2a358cf6a401cd2724448:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 094900f3d7b1126075b2a358cf6a401cd2724448
Author: James Baicoianu 
Date:   Wed May 11 02:32:33 2016 -0700

    Refresh image object when texture updates

diff --git a/scripts/image.js b/scripts/image.js
index b062e72dafb655673a93b7d022d3d3e8a37431ae..
index ..ec31e76ed33499f6e5e0b77b8171967833767ee9 100644
--- a/scripts/image.js
+++ b/scripts/image.js
@@ -53,6 +53,7 @@ elation.require(['janusweb.janusbase'], function() {
       this.texture = elation.engine.assets.find('image', this.properties.image_id);
       if (this.texture) {
         elation.events.add(this.texture, 'asset_load', elation.bind(this, this.imageloaded));
+        elation.events.add(this.texture, 'update', elation.bind(this, this.refresh));

         var geo = this.createGeometry();
         var mat = this.createMaterial();

-----END OF PAGE-----