diff options
author | Diego Prado Gesto <d.pradogesto@ultimaker.com> | 2018-05-25 10:39:51 +0300 |
---|---|---|
committer | Diego Prado Gesto <d.pradogesto@ultimaker.com> | 2018-05-25 10:40:42 +0300 |
commit | 5704a7b18475f1a5c82edfff68cc7f6e91419e59 (patch) | |
tree | fd8a1011988cd2535b48021add66c38edb4db871 /cura/CuraActions.py | |
parent | ddd7b056f387c9bb1a68e4952deac5b783ef723e (diff) | |
parent | 220c99cf3bfdf4757bb52afe7a7281feaea810f8 (diff) |
Merge branch 'master' into WIP_improve_initialization
Conflicts:
cura/AutoSave.py
cura/BuildVolume.py
cura/CuraApplication.py
Contributes to CURA-5164
Diffstat (limited to 'cura/CuraActions.py')
-rw-r--r-- | cura/CuraActions.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cura/CuraActions.py b/cura/CuraActions.py index 019893957f..8544438f3a 100644 --- a/cura/CuraActions.py +++ b/cura/CuraActions.py @@ -72,7 +72,8 @@ class CuraActions(QObject): # \param count The number of times to multiply the selection. @pyqtSlot(int) def multiplySelection(self, count: int) -> None: - job = MultiplyObjectsJob(Selection.getAllSelectedObjects(), count, min_offset = 8) + min_offset = Application.getInstance().getBuildVolume().getEdgeDisallowedSize() + 2 # Allow for some rounding errors + job = MultiplyObjectsJob(Selection.getAllSelectedObjects(), count, min_offset = max(min_offset, 8)) job.start() ## Delete all selected objects. |