repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 020afdb994a4e4a487a201e30ee04739d8ed612a:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 020afdb994a4e4a487a201e30ee04739d8ed612a
Author: James Baicoianu 
Date:   Sat Oct 19 03:35:47 2019 -0700

    Fixed rotation snap with gizmo

diff --git a/media/assets/webui/apps/editor/editor.js b/media/assets/webui/apps/editor/editor.js
index 3a980639cec5aad5e1e64ed6bcbe223d25cac771..
index ..16a34b83f36a71dc4c032b399e184f91b70141eb 100644
--- a/media/assets/webui/apps/editor/editor.js
+++ b/media/assets/webui/apps/editor/editor.js
@@ -149,9 +149,8 @@ console.log('mouse down!');
     this.roomedit.rotationsnap = snap;
     let manipulator = this.getManipulator();
     if (snap == 'Off') snap = 0;
-    if (manipulator) manipulator.setRotationSnap(+snap);
+    if (manipulator) manipulator.setRotationSnap(+snap * THREE.Math.DEG2RAD);
 /*
-console.log('oh snap', snap, this.elements.rotatesnap.value);
     if (this.elements.rotatesnap.value != snap) {
       this.elements.rotatesnap.value = snap || 'Off';
     }

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