From aef5c76c4b112e400cee29a6cef839603c29a9ca Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Tue, 14 Nov 2017 08:54:47 +0100 Subject: [PATCH] Update: CC - Mouse Move - Moorcow (8a0m30eevi.js) 373 bytes modified --- 8a0m30eevi.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/8a0m30eevi.js b/8a0m30eevi.js index 93b8ca9..3a14296 100644 --- a/8a0m30eevi.js +++ b/8a0m30eevi.js @@ -3,6 +3,13 @@ if (!this.entityLoaded) { } if (!this.initialized) { + this.mouse = this.entityLoaded.mouse; + this.raycaster = this.entityLoaded.raycaster; + this.camera = this.entityLoaded.camera; + this.scene = this.entityLoaded.scene; + this.cursor = this.entityLoaded.cursor; + this.thrower = this.entityLoaded.thrower; + this.throwerParticleEngine = this.entityLoaded.throwerParticleEngine; this.initialized = true; } @@ -77,6 +84,8 @@ intersects.map( mesh.name.indexOf('Stone') === -1 //stones ) { + if (this.mouseIsDown) + if (mesh.instance.material instanceof Array) { mesh.instance.material.map( function(material) {