repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 419406b41e3730c704522e286421affc11f81b84:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 419406b41e3730c704522e286421affc11f81b84
Author: James Baicoianu 
Date:   Mon Jul 13 10:07:28 2020 -0700

    Use this.getAsset() instead of global asset pack

diff --git a/scripts/janusparticle.js b/scripts/janusparticle.js
index 5168569c85971475601227485a342f9437cc208a..
index ..7bcb2adef71cfdfc1a9862bad5c231d5c19c8444 100644
--- a/scripts/janusparticle.js
+++ b/scripts/janusparticle.js
@@ -75,7 +75,7 @@ elation.require(['janusweb.janusbase'], function() {

       var texture = null;
       if (this.image_id) {
-        texture = elation.engine.assets.find('image', this.image_id);
+        texture = this.getAsset('image', this.image_id);
         //elation.events.add(texture, 'asset_load', elation.bind(this, this.assignTextures));
         elation.events.add(texture, 'update', elation.bind(this, this.refresh));
       }

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