mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Geometry: Fix profile modifications.
This commit is contained in:
1 parent
7774d2d7af
commit
1457db721b
5 files changed
+17
-5
No files matched your search
@@ -396,6 +396,12 @@ class ProfileXYZ(Profile, SQLSubModel):
|
||||
|
||||
return name
|
||||
|
||||
def modified(self):
|
||||
super(ProfileXYZ, self).modified()
|
||||
|
||||
self.tab_up_to_date = False
|
||||
self.station_up_to_date = False
|
||||
|
||||
def x(self):
|
||||
return [point.x for point in self.points]
|
||||
|
||||
@@ -517,7 +523,7 @@ class ProfileXYZ(Profile, SQLSubModel):
|
||||
The new point.
|
||||
"""
|
||||
point = PointXYZ(0., 0., 0., profile=self, status=self._status)
|
||||
self.points.insert(index, point)
|
||||
self._points.insert(index, point)
|
||||
|
||||
self.modified()
|
||||
self.tab_up_to_date = False
|
||||
|
||||
Reference in new issue
Block a user