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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user