Commit 01ada1e792a7b45764a1c7f91cc487ce7699e5d7
1 parent
70587e76
Exists in
master
and in
6 other branches
FIX: Adding all the points in the measurements class
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
invesalius/data/measures.py
@@ -86,7 +86,6 @@ class MeasurementManager(object): | @@ -86,7 +86,6 @@ class MeasurementManager(object): | ||
86 | m = Measurement() | 86 | m = Measurement() |
87 | m.index = len(self.measures) | 87 | m.index = len(self.measures) |
88 | m.location = location | 88 | m.location = location |
89 | - m.points.append(position) | ||
90 | m.slice_number = slice_number | 89 | m.slice_number = slice_number |
91 | if type == const.LINEAR: | 90 | if type == const.LINEAR: |
92 | mr = LinearMeasure(m.colour) | 91 | mr = LinearMeasure(m.colour) |
@@ -96,6 +95,7 @@ class MeasurementManager(object): | @@ -96,6 +95,7 @@ class MeasurementManager(object): | ||
96 | 95 | ||
97 | x, y, z = position | 96 | x, y, z = position |
98 | actors = self.current[1].AddPoint(x, y, z) | 97 | actors = self.current[1].AddPoint(x, y, z) |
98 | + self.current[0].points.append(position) | ||
99 | ps.Publisher().sendMessage(("Add actors", location), | 99 | ps.Publisher().sendMessage(("Add actors", location), |
100 | (actors, self.current[0].slice_number)) | 100 | (actors, self.current[0].slice_number)) |
101 | 101 |