Skip to content

Commit

Permalink
Draft: WorkingPlane, Pythonic style, improved the docstrings; alignTo…
Browse files Browse the repository at this point in the history
…Selection() only works when 'FreeCADGui.Selection' is available, that is, when the graphical interface is loaded.
  • Loading branch information
vocx-fc authored and yorikvanhavre committed Aug 9, 2019
1 parent 97a02d8 commit 17f39fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Mod/Draft/WorkingPlane.py
Expand Up @@ -585,6 +585,9 @@ def alignToSelection(self, offset=0):
It extracts the shape of the object or subobject
and then calls `alignToFace(shape, offset)`.
This method only works when the `FreeCADGui.Selection`
class is available, that is, when the graphical interface is loaded.
Parameter
---------
offset : float
Expand Down

0 comments on commit 17f39fc

Please sign in to comment.