Geometry: Fix profile modifications.

This commit is contained in:
parouby committed 2025-08-26 09:31:23 +02:00
1 parent 7774d2d7af
commit 1457db721b
5 files changed
+17 -5

No files matched your search

+7 -1
View File
@@ -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