mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
geometry: Make parent as optional.
This commit is contained in:
1 parent
3617fde986
commit
0546b304be
1 file changed
+4
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user