Geometry: Add water level at shift click, end of onpickevent refactoring.

This commit is contained in:
Pierre-Antoine Rouby committed 2024-05-07 16:58:29 +02:00
1 parent f4561494f6
commit 317cbf904d
4 files changed
+106 -25

No files matched your search

+4 -4
View File
@@ -519,10 +519,10 @@ class ProfileXYZ(Profile, SQLSubModel):
station = []
constant = 0.0
if (first_named_point is not None and
last_named_point is not None):
if (first_named_point != last_named_point and
first_named_point.x != last_named_point.x):
if (first_named_point is not None
and last_named_point is not None):
if (first_named_point != last_named_point
and first_named_point.x != last_named_point.x):
vector = Vector1d(first_named_point, last_named_point)
norm_dir_vec = vector.normalized_direction_vector()
else: