From 75b4225d45fda1b70ae0921b4c3fa68250614b73 Mon Sep 17 00:00:00 2001 From: Stephen Early Date: Wed, 17 Mar 2021 18:48:19 +0000 Subject: [PATCH] Fix camera position buttons in WebGL export Fix the "View Top" and "View Front" buttons on pages generated with the WebGL exporter to select the same views as the FreeCAD Navigation Cube. --- src/Mod/Arch/importWebGL.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mod/Arch/importWebGL.py b/src/Mod/Arch/importWebGL.py index 0148279984..8aecb7d6db 100644 --- a/src/Mod/Arch/importWebGL.py +++ b/src/Mod/Arch/importWebGL.py @@ -326,8 +326,8 @@ def getHTMLTemplate(): clippingz: 100, cameraType: cameraType, navright: function() { navChange( [1,0,0] ); }, - navtop: function() { navChange( [0,1,0] ); }, - navfront: function() { navChange( [0,0,1] ); } + navtop: function() { navChange( [0,0,1] ); }, + navfront: function() { navChange( [0,-1,0] ); } }; // ---- Wires ---- @@ -807,4 +807,4 @@ def baseEncode( arr ): output.append( buffer ) if len(buffer) > longest: longest = len(buffer) output = [('{:>'+str(longest)+'}').format(x) for x in output] # pad each element - return str(longest) + ('').join(output) \ No newline at end of file + return str(longest) + ('').join(output)