Draft: Fix and improve Draft_AnnotationStyleEditor (#8207)
* Draft: Fix and improve Draft_AnnotationStyleEditor * Draft: Fix and improve Draft_AnnotationStyleEditor 2
This commit is contained in:
@@ -37,7 +37,6 @@ import draftutils.utils as utils
|
||||
import draftfunctions.svgtext as svgtext
|
||||
|
||||
from draftfunctions.svgshapes import get_proj, get_circle, get_path
|
||||
from draftutils.utils import param
|
||||
from draftutils.messages import _wrn, _err
|
||||
|
||||
# Delay import of module until first use because it is heavy
|
||||
@@ -51,6 +50,7 @@ DraftGeomUtils = lz.LazyLoader("DraftGeomUtils", globals(), "DraftGeomUtils")
|
||||
|
||||
def get_line_style(line_style, scale):
|
||||
"""Return a linestyle scaled by a factor."""
|
||||
param = App.ParamGet("User parameter:BaseApp/Preferences/Mod/Draft")
|
||||
style = None
|
||||
|
||||
if line_style == "Dashed":
|
||||
|
||||
@@ -34,7 +34,6 @@ import FreeCAD as App
|
||||
import DraftVecUtils
|
||||
import draftutils.utils as utils
|
||||
|
||||
from draftutils.utils import param
|
||||
from draftutils.messages import _msg, _wrn
|
||||
|
||||
# Delay import of module until first use because it is heavy
|
||||
@@ -90,6 +89,7 @@ def getProj(vec, plane=None):
|
||||
|
||||
def get_discretized(edge, plane):
|
||||
"""Get a discretized edge on a plane."""
|
||||
param = App.ParamGet("User parameter:BaseApp/Preferences/Mod/Draft")
|
||||
pieces = param.GetFloat("svgDiscretization", 10.0)
|
||||
|
||||
if pieces == 0:
|
||||
|
||||
Reference in New Issue
Block a user