geometry: Make parent as optional.

mesh
Pierre-Antoine Rouby 2023-05-09 13:39:06 +02:00
parent 3617fde986
commit 0546b304be
1 changed files with 4 additions and 1 deletions

View File

@ -16,7 +16,7 @@ from Model.Geometry.ProfileXYZ import ProfileXYZ
from Model.Except import FileFormatError, exception_message_box
class Reach:
def __init__(self, parent):
def __init__(self, parent=None):
self._parent = parent
self._profiles: List[Profile] = []
@ -39,6 +39,9 @@ class Reach:
@property
def name(self):
if self._parent == None:
return ""
return self._parent.name
@property