if parsing takes long, quit if requested
This commit is contained in:
@@ -988,7 +988,7 @@ class World:
|
|||||||
|
|
||||||
def interpolate_points_in_thread(self):
|
def interpolate_points_in_thread(self):
|
||||||
|
|
||||||
self.points_interpolation_frequency = 1
|
self.points_interpolation_frequency = 0.5
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
if self.points_interpolation_thread_exit:
|
if self.points_interpolation_thread_exit:
|
||||||
@@ -998,6 +998,8 @@ class World:
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
for point_index in self.points_interpolation_required:
|
for point_index in self.points_interpolation_required:
|
||||||
|
if self.points_interpolation_thread_exit:
|
||||||
|
return
|
||||||
if self.get_interpolation_required(point_index):
|
if self.get_interpolation_required(point_index):
|
||||||
self.interpolate_points(point_index)
|
self.interpolate_points(point_index)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user