-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: janusweb
action: commit
revision:
path_from:
revision_from: 04971479cb91117792841091923033038a5c5fb8:
path_to:
revision_to:

git.thebackupbox.net

janusweb

git://git.thebackupbox.net/janusweb

commit 04971479cb91117792841091923033038a5c5fb8
Author: James Baicoianu <james_github@baicoianu.com>
Date:   Mon Feb 13 05:01:12 2017 -0800

    Fix for edit mode vector encoding

diff --git a/scripts/janusweb.js b/scripts/janusweb.js

index 237a15fc5383d5096c506af372e080ba01e8585f..

index ..6ffc3c24c6e245d4813abcf3a91c732c7a8ff015 100644

--- a/scripts/janusweb.js
+++ b/scripts/janusweb.js
@@ -622,9 +622,9 @@ elation.require(['janusweb.config', 'engine.things.generic','janusweb.remoteplay
               var val = change[k];
               if (val instanceof THREE.Vector2 ||
                   val instanceof THREE.Vector3) {
-                val = val.toArray().join(',');
+                val = val.toArray().map(function(n) { return n.toFixed(4); }).join(' ');
               } else if (val instanceof THREE.Color) {
-                val = val.toArray().join(',');
+                val = val.toArray().map(function(n) { return n.toFixed(4); }).join(' ');
               }
               if (val !== null && val !== undefined && typeof val != 'function') {
                 xmlnode.setAttribute(k, val);

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

-- Response ended

-- Page fetched on Sun Jun 2 15:05:11 2024