Skip to content

Commit

Permalink
Draft: Fixed ghost not appearing in scale tool
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Jul 8, 2019
1 parent 3857711 commit dadd8a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Mod/Draft/DraftTools.py
Expand Up @@ -4280,12 +4280,16 @@ def numericInput(self,numx,numy,numz):
self.point = Vector(numx,numy,numz)
self.node.append(self.point)
if not self.pickmode:
if not self.ghosts:
self.set_ghosts()
self.ui.offUi()
if self.call:
self.view.removeEventCallback("SoEvent",self.call)
self.task = DraftGui.ScaleTaskPanel()
self.task.sourceCmd = self
DraftGui.todo.delay(FreeCADGui.Control.showDialog,self.task)
DraftGui.todo.delay(self.task.xValue.selectAll,None)
DraftGui.todo.delay(self.task.xValue.setFocus,None)
for ghost in self.ghosts:
ghost.on()
elif len(self.node) == 2:
Expand Down

0 comments on commit dadd8a8

Please sign in to comment.