repo: janusweb action: commit revision: path_from: revision_from: 53aa146835966df2e87420ffe2722fea6e9dc979: path_to: revision_to:
commit 53aa146835966df2e87420ffe2722fea6e9dc979 Author: James BaicoianuDate: Wed May 11 02:31:58 2016 -0700 Refresh object when texture updates diff --git a/scripts/object.js b/scripts/object.js
--- a/scripts/object.js
+++ b/scripts/object.js
@@ -94,6 +94,7 @@ elation.require(['janusweb.janusbase'], function() {
if (this.properties.image_id) {
texture = elation.engine.assets.find('image', this.properties.image_id);
elation.events.add(texture, 'asset_load', elation.bind(this, this.assignTextures));
+ elation.events.add(texture, 'update', elation.bind(this, this.refresh));
}
if (this.properties.video_id) {
var videoasset = elation.engine.assets.find('video', this.properties.video_id, true);
-----END OF PAGE-----