Commit 0546b304 authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

geometry: Make parent as optional.

Showing with 4 additions and 1 deletion
+4 -1
...@@ -16,7 +16,7 @@ from Model.Geometry.ProfileXYZ import ProfileXYZ ...@@ -16,7 +16,7 @@ from Model.Geometry.ProfileXYZ import ProfileXYZ
from Model.Except import FileFormatError, exception_message_box from Model.Except import FileFormatError, exception_message_box
class Reach: class Reach:
def __init__(self, parent): def __init__(self, parent=None):
self._parent = parent self._parent = parent
self._profiles: List[Profile] = [] self._profiles: List[Profile] = []
...@@ -39,6 +39,9 @@ class Reach: ...@@ -39,6 +39,9 @@ class Reach:
@property @property
def name(self): def name(self):
if self._parent == None:
return ""
return self._parent.name return self._parent.name
@property @property
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment