Skip to content

Commit

Permalink
Set the ship values in meters
Browse files Browse the repository at this point in the history
  • Loading branch information
sanguinariojoe committed Apr 28, 2014
1 parent 93fc937 commit 493d1cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Mod/Ship/shipCreateShip/TaskPanel.py
Expand Up @@ -47,9 +47,9 @@ def accept(self):
form.length = self.widget(QtGui.QDoubleSpinBox, "Length")
form.breadth = self.widget(QtGui.QDoubleSpinBox, "Breadth")
form.draft = self.widget(QtGui.QDoubleSpinBox, "Draft")
obj.Length = form.length.value()
obj.Breadth = form.breadth.value()
obj.Draft = form.draft.value()
obj.Length = '{} m'.format(form.length.value())
obj.Breadth = '{} m'.format(form.breadth.value())
obj.Draft = '{} m'.format(form.draft.value())
App.ActiveDocument.recompute()
return True

Expand Down

0 comments on commit 493d1cc

Please sign in to comment.