Fix calculation of infill wipe distance starting from infill location

Subtract the thickness of the walls from this setting. This most likely ends up negative and thus not counting because it's maxed with something that starts at 0.
I've also simplified this algorithm a bit. Easier to follow if you ask me.

Done as a 5 minute fix.
This commit is contained in:
Ghostkeeper 2020-04-14 17:59:00 +02:00
parent 0e30f0bb6b
commit f6479840f6
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A
2 changed files with 16 additions and 11 deletions

View file

@ -1798,7 +1798,7 @@ class CuraApplication(QtApplication):
# If a model is to small then it will not contain any points
if offset_shape_arr is None and hull_shape_arr is None:
Message(self._i18n_catalog.i18nc("@info:status", "The selected model was too small to load."),
title=self._i18n_catalog.i18nc("@info:title", "Warning")).show()
title = self._i18n_catalog.i18nc("@info:title", "Warning")).show()
return
# Step is for skipping tests to make it a lot faster. it also makes the outcome somewhat rougher