Improve Axis Cross behavior and expose parameter to 3D View preferences

This commit is contained in:
Adrian
2020-05-15 14:27:17 -04:00
committed by wwmayer
parent 8944a9cfbe
commit 1f63355c06
6 changed files with 29 additions and 9 deletions

View File

@@ -124,6 +124,7 @@ class PivyTestCases(unittest.TestCase):
from pivy import coin; import FreeCADGui
Mesh.show(planarMeshObject)
view=FreeCADGui.ActiveDocument.ActiveView
view.setAxisCross(False)
pc=coin.SoGetPrimitiveCountAction()
pc.apply(view.getSceneGraph())
self.failUnless(pc.getTriangleCount() == 2)