use transformGeometry in importSVG

partly reverts f045df1ef3 as workaround
for issue #2062
This commit is contained in:
Sebastian Hoogen
2015-05-09 19:57:36 +02:00
parent 31cecf79a1
commit d4f3cb7277

View File

@@ -1004,12 +1004,14 @@ class svgHandler(xml.sax.ContentHandler):
if isinstance(sh,Part.Shape): if isinstance(sh,Part.Shape):
if self.transform: if self.transform:
FreeCAD.Console.PrintMessage("applying object transform: %s\n" % self.transform) FreeCAD.Console.PrintMessage("applying object transform: %s\n" % self.transform)
sh = transformCopyShape(sh,self.transform) #sh = transformCopyShape(sh,self.transform)
#sh = sh.transformGeometry(self.transform) # see issue #2062
sh = sh.transformGeometry(self.transform)
for transform in self.grouptransform[::-1]: for transform in self.grouptransform[::-1]:
FreeCAD.Console.PrintMessage("applying group transform: %s\n" % transform) FreeCAD.Console.PrintMessage("applying group transform: %s\n" % transform)
sh = transformCopyShape(sh,transform) #sh = transformCopyShape(sh,transform)
#sh = sh.transformGeometry(transform) # see issue 2062
sh = sh.transformGeometry(transform)
return sh return sh
elif Draft.getType(sh) == "Dimension": elif Draft.getType(sh) == "Dimension":
pts = [] pts = []