Small fixes in Draft tools to work with Arch objects

This commit is contained in:
Yorik van Havre
2012-01-25 15:35:43 -02:00
parent 4920f2adf9
commit cb30344b6e
4 changed files with 45 additions and 30 deletions

View File

@@ -486,15 +486,12 @@ class Line(Creator):
def wipe(self):
"removes all previous segments and starts from last point"
if len(self.node) > 1:
print "nullifying"
# self.obj.Shape.nullify() - for some reason this fails
self.obj.ViewObject.Visibility = False
self.node = [self.node[-1]]
print "setting trackers"
self.linetrack.p1(self.node[0])
self.planetrack.set(self.node[0])
msg(translate("draft", "Pick next point:\n"))
print "done"
def numericInput(self,numx,numy,numz):
"this function gets called by the toolbar when valid x, y, and z have been entered there"