Skip to content

Commit

Permalink
Fixed merge issues and re-enabled tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
mlampert committed Jan 28, 2017
1 parent f0db6b8 commit ea7789b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions src/Mod/Path/PathScripts/PathDressupHoldingTags.py
Expand Up @@ -25,15 +25,13 @@
import FreeCADGui
import Draft
import DraftGeomUtils
import DraftGui
import Path
import PathScripts.PathLog as PathLog
import PathScripts.PathPreferencesPathDressup as PathPreferencesPathDressup
import Part
import copy
import math

from DraftGui import todo
from PathScripts import PathUtils
from PathScripts.PathGeom import PathGeom
from PathScripts.PathPreferences import PathPreferences
Expand All @@ -52,8 +50,8 @@ def translate(text, context = "PathDressup_HoldingTags", disambig=None):

def debugEdge(edge, prefix, force = False):
if force or PathLog.getLevel(LOG_MODULE) == PathLog.Level.DEBUG:
pf = edge.valueAt(edge.FirstParameter)
pl = edge.valueAt(edge.LastParameter)
pf = edge.valueAt(edge.FirstParameter)
pl = edge.valueAt(edge.LastParameter)
if type(edge.Curve) == Part.Line or type(edge.Curve) == Part.LineSegment:
print("%s %s((%.2f, %.2f, %.2f) - (%.2f, %.2f, %.2f))" % (prefix, type(edge.Curve), pf.x, pf.y, pf.z, pl.x, pl.y, pl.z))
else:
Expand Down Expand Up @@ -131,7 +129,7 @@ def defaultCount(cls, ifNotSet = 4):
@classmethod
def defaultRadius(cls, ifNotSet = 0.0):
return PathPreferences.preferences().GetFloat(cls.DefaultHoldingTagRadius, ifNotSet)


def __init__(self):
self.form = FreeCADGui.PySideUic.loadUi(":/preferences/PathDressupHoldingTags.ui")
Expand Down Expand Up @@ -222,8 +220,8 @@ def createSolidsAt(self, z, R):
PathLog.debug("solid.rotate(%f)" % angle)
self.solid.rotate(FreeCAD.Vector(0,0,0), FreeCAD.Vector(0,0,1), angle)
orig = self.originAt(z - 0.01 * self.actualHeight)
PathLog.debug("solid.translate(%s)" % oric)
self.solid.translate(oric)
PathLog.debug("solid.translate(%s)" % orig)
self.solid.translate(orig)
radius = min(self.radius, radius)
self.realRadius = radius
if radius != 0:
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Path/TestPathApp.py
Expand Up @@ -31,4 +31,4 @@
from PathTests.TestPathGeom import TestPathGeom
from PathTests.TestPathDepthParams import depthTestCases

#from PathTests.TestPathDressupHoldingTags import TestHoldingTags
from PathTests.TestPathDressupHoldingTags import TestHoldingTags

0 comments on commit ea7789b

Please sign in to comment.