From 01a8bffc4f4144352f72b484301665329387dfbc Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Thu, 2 Nov 2017 13:03:47 +0100 Subject: [PATCH] Update: Custom Code - BK Flame - Before Render (dywmtohrda.js) 50 bytes modified --- dywmtohrda.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dywmtohrda.js b/dywmtohrda.js index cd882cc..1568980 100644 --- a/dywmtohrda.js +++ b/dywmtohrda.js @@ -140,9 +140,10 @@ if (this.spawnTime > this.nextSpawnTime) { } this.flames.map( - function(flame) { + function(flame, index) { flame.mesh.position.add(flame.direction); flame.mesh.updateInstancePosition(); + flame.mesh.instance.renderOrder = index; } );