From ec4ed868b681b63bec572f389d76e366c455d77c Mon Sep 17 00:00:00 2001 From: Michael Georg Hansen Date: Fri, 19 Dec 2014 22:04:03 +0100 Subject: [PATCH] Remove leftover debug output and use named parameters. --- src/Mod/Draft/Draft.py | 3 --- src/Mod/Draft/DraftTools.py | 4 +--- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Mod/Draft/Draft.py b/src/Mod/Draft/Draft.py index ddffd2d7f..1015823aa 100644 --- a/src/Mod/Draft/Draft.py +++ b/src/Mod/Draft/Draft.py @@ -2175,9 +2175,7 @@ def makeDrawingView(obj,page,lwmod=None,tmod=None,otherProjection=None): _DrawingView(viewobj) page.addObject(viewobj) if (otherProjection): - FreeCAD.Console.PrintWarning("using otherProjection") if hasattr(otherProjection,"Scale"): - FreeCAD.Console.PrintWarning(otherProjection.Scale) viewobj.Scale = otherProjection.Scale if hasattr(otherProjection,"X"): viewobj.X = otherProjection.X @@ -2186,7 +2184,6 @@ def makeDrawingView(obj,page,lwmod=None,tmod=None,otherProjection=None): if hasattr(otherProjection,"Rotation"): viewobj.Rotation = otherProjection.Rotation if hasattr(otherProjection,"Direction"): - FreeCAD.Console.PrintWarning(otherProjection.Direction) viewobj.Direction = otherProjection.Direction else: if hasattr(page.ViewObject,"HintScale"): diff --git a/src/Mod/Draft/DraftTools.py b/src/Mod/Draft/DraftTools.py index a4cf5cf0c..72070ba82 100644 --- a/src/Mod/Draft/DraftTools.py +++ b/src/Mod/Draft/DraftTools.py @@ -3152,10 +3152,8 @@ class Drawing(Modifier): self.page = self.createDefaultPage() otherProjection = None for obj in sel: - FreeCAD.Console.PrintWarning(obj) if obj.isDerivedFrom("Drawing::FeatureView"): otherProjection = obj - FreeCAD.Console.PrintWarning(otherProjection) sel.reverse() for obj in sel: if obj.ViewObject.isVisible(): @@ -3164,7 +3162,7 @@ class Drawing(Modifier): #oldobj = self.page.getObject(name) #if oldobj: # self.doc.removeObject(oldobj.Name) - Draft.makeDrawingView(obj,self.page,None,None,otherProjection) + Draft.makeDrawingView(obj,self.page,otherProjection=otherProjection) self.doc.recompute() def createDefaultPage(self):