Draft: Fix wrong default value for defaultWP

The default value for defaultWP in DraftTools.py did not match the value in DraftGui.py and preferences-draft.ui.
See forum topic: https://forum.freecadweb.org/viewtopic.php?f=8&t=57909&p=513411#p513411
This commit is contained in:
Roy-043
2021-07-01 09:47:41 +02:00
committed by Bernd Hahnebach
parent 20aaecf4f3
commit b66073f1a1

View File

@@ -105,7 +105,7 @@ FreeCADGui.updateLocale()
# sets the default working plane
plane = WorkingPlane.plane()
FreeCAD.DraftWorkingPlane = plane
defaultWP = Draft.getParam("defaultWP",1)
defaultWP = Draft.getParam("defaultWP",0)
if defaultWP == 1: plane.alignToPointAndAxis(Vector(0,0,0), Vector(0,0,1), 0)
elif defaultWP == 2: plane.alignToPointAndAxis(Vector(0,0,0), Vector(0,1,0), 0)
elif defaultWP == 3: plane.alignToPointAndAxis(Vector(0,0,0), Vector(1,0,0), 0)