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