From ad74402d9f97201d673dd231f36a4ebc9915b4da Mon Sep 17 00:00:00 2001 From: vocx-fc Date: Thu, 8 Aug 2019 16:38:01 -0500 Subject: [PATCH] Draft: WorkingPlane, Pythonic style, improved the docstrings --- src/Mod/Draft/WorkingPlane.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Mod/Draft/WorkingPlane.py b/src/Mod/Draft/WorkingPlane.py index 49777844ac..f67133e908 100644 --- a/src/Mod/Draft/WorkingPlane.py +++ b/src/Mod/Draft/WorkingPlane.py @@ -813,6 +813,11 @@ class plane: self.stored = [self.u, self.v, self.axis, self.position, self.weak] def restore(self): + """Restore the plane attributes that were saved. + + Restores the attributes `u`, `v`, `axis`, `position` and `weak` + from `stored`, and set `stored` to `None`. + """ "restores a previously saved plane state, if exists" if self.stored: self.u = self.stored[0]