repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 34f2a994fa91f37425fc09c49c424553a1dbb213:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 34f2a994fa91f37425fc09c49c424553a1dbb213
Author: James Baicoianu 
Date:   Mon Jul 13 11:35:39 2020 -0700

    Bypass proxy objects for texture parameter updates (performance boost)

diff --git a/scripts/object.js b/scripts/object.js
index efc2223bb37c7563769242ba59b4f34b67dcb1d5..
index ..a836152ee18e8ebbda6560e27c46d4f3723f4c16 100644
--- a/scripts/object.js
+++ b/scripts/object.js
@@ -960,9 +960,9 @@ elation.require(['janusweb.janusbase', 'janusweb.websurface'], function() {
           });
         }
         let applyTextureOffset = (texture) => {
-          texture.offset.copy(this.texture_offset);
-          texture.repeat.copy(this.texture_repeat);
-          texture.rotation = this.texture_rotation;
+          texture.offset.copy(this.properties.texture_offset);
+          texture.repeat.copy(this.properties.texture_repeat);
+          texture.rotation = this.properties.texture_rotation;
         }
         this.objectMeshes.forEach(n => {
           n.onBeforeRender = () => {

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