Remove leftover debug output and use named parameters.

This commit is contained in:
Michael Georg Hansen 2014-12-19 22:04:03 +01:00 committed by wmayer
parent fe1d67fd65
commit ec4ed868b6
2 changed files with 1 additions and 6 deletions

View File

@ -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"):

View File

@ -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):