Draft: warn the user if offset direction is not set

This commit is contained in:
Yorik van Havre
2020-04-14 15:35:46 +02:00
parent 2c11e0f4cd
commit 97c8eff825

View File

@@ -3067,6 +3067,8 @@ class Offset(Modifier):
['Draft.offset(FreeCAD.ActiveDocument.'+self.sel.Name+','+d+',copy='+str(copymode)+',occ='+str(occmode)+')',
'FreeCAD.ActiveDocument.recompute()'])
self.finish()
else:
FreeCAD.Console.PrintError(translate("draft","Offset direction is not defined. Please move the mouse on either side of the object first to indicate a direction")+"/n")
class Stretch(Modifier):