repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 871fe1880a74d199546208c34e8ffd73bf05e387:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 871fe1880a74d199546208c34e8ffd73bf05e387
Author: James Baicoianu 
Date:   Mon Oct 1 17:41:15 2018 -0700

    Respect scale vector from avatar movement packets

diff --git a/scripts/janusghost.js b/scripts/janusghost.js
index cde63464d5bd4fe6a13525b490add90cf40ac1f1..
index ..8e43742fe77462837dbcbfef32d69cd28d944c46 100644
--- a/scripts/janusghost.js
+++ b/scripts/janusghost.js
@@ -288,6 +288,9 @@ elation.require(['janusweb.janusbase', 'engine.things.leapmotion'], function() {
         if (movedata.avatar) {
           this.setAvatar(movedata.avatar.replace(/\^/g, '"'));
         }
+        if (movedata.scale) {
+          this.scale.fromArray(parser.getVectorValue(movedata.scale));
+        }
         if (movedata.view_dir && movedata.up_dir) {
           if (this.head) {
             ydir.fromArray(parser.getVectorValue(movedata.up_dir, [0,1,0]));

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