Draft: Keep using the already set working plane, if existing
This commit is contained in:
committed by
Yorik van Havre
parent
fad8fa4071
commit
8d237da7cb
@@ -54,9 +54,10 @@ import sys, FreeCAD, os, Part, math, re, string, Mesh, Draft, DraftVecUtils, Dra
|
||||
from Draft import _Dimension, _ViewProviderDimension
|
||||
from FreeCAD import Vector
|
||||
|
||||
# sets the default working plane
|
||||
plane = WorkingPlane.plane()
|
||||
FreeCAD.DraftWorkingPlane = plane
|
||||
# sets the default working plane if Draft hasn't been started yet
|
||||
if not hasattr(FreeCAD,"DraftWorkingPlane"):
|
||||
plane = WorkingPlane.plane()
|
||||
FreeCAD.DraftWorkingPlane = plane
|
||||
|
||||
gui = FreeCAD.GuiUp
|
||||
draftui = None
|
||||
|
||||
Reference in New Issue
Block a user