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.
This commit is contained in:
Stephen Early
2021-03-17 18:48:19 +00:00
parent 371b089ea0
commit 75b4225d45

View File

@@ -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)
return str(longest) + ('').join(output)