repo: janusweb action: commit revision: path_from: revision_from: 094900f3d7b1126075b2a358cf6a401cd2724448: path_to: revision_to:
commit 094900f3d7b1126075b2a358cf6a401cd2724448 Author: James BaicoianuDate: Wed May 11 02:32:33 2016 -0700 Refresh image object when texture updates diff --git a/scripts/image.js b/scripts/image.js
--- 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-----