Cura/cura
Ghostkeeper c7e6553dbf
Disallow printers larger than 2km
To do this, I'm giving more power to the NumericTextFieldWithUnit QML element, to allow an arbitrary minimum and maximum. Enforcing this minimum and maximum is fairly simple with a JavaScript hook. This hook is necessary because the DoubleValidator allows intermediary values which defeats the purpose, essentially allowing any number as long as it has the correct number of digits.
Printers larger than 2km would start to give overflow errors in its X and Y coordinates. Z is okay up to about 9 billion kilometres in theory, since we don't need to do any squaring math on those coordinates afaik. In practice I'm doing this because at very high values the Arranger also gives errors because Numpy can't handle those extremely big arrays (since the arranger creates a 2mm grid).

Fixes Sentry issue CURA-CB.
2020-03-20 11:16:16 +01:00
..
API Enforce Cura API to be a singleton 2020-01-27 16:28:26 +01:00
Arranging Disallow printers larger than 2km 2020-03-20 11:16:16 +01:00
Backups Check if main config file is in backup zip. 2020-01-31 16:26:30 +01:00
Machines Add missing typing 2020-02-28 13:53:43 +01:00
OAuth2 Prevent crashing on PermissionError when importing http.server (#7095) 2020-02-17 17:01:11 +01:00
Operations Fix typing in __init__ methods to appease MYPY 2020-01-14 21:56:06 +01:00
PrinterOutput Fix bunch of issues found by pylint 2020-01-10 16:37:46 +01:00
ReaderWriters Create module cura.ReaderWriters 2018-04-05 15:14:15 +02:00
Scene Prevent max recursion for convex hull calculation 2020-02-28 16:31:28 +01:00
Settings Fix variant from extruder not restoring correctly 2020-03-13 10:37:08 +01:00
Stages Move CuraStage back to where plugins expect it. 2019-03-29 13:11:03 +01:00
TaskManagement Move HttpRequestManager to Uranium 2020-01-03 08:59:29 +01:00
UI Gracefully handle the sitation if the changelog was not found 2020-03-18 11:17:23 +01:00
Utils Fix mypy warning 2019-10-23 15:29:54 +02:00
__init__.py T466: Revert the previous commit since it messed up the file rights. 2016-12-23 15:53:15 -05:00
ApplicationMetadata.py Revert "Ensure the default Trust violation handler is always called" 2020-03-17 13:51:39 +01:00
AutoSave.py Add some missing typing 2020-01-10 14:58:53 +01:00
BuildVolume.py Fix bunch of issues found by pylint 2020-01-10 16:37:46 +01:00
CameraAnimation.py Merge pull request #905 from Ultimaker/snappier_camera_animation 2017-10-24 10:36:55 +02:00
CrashHandler.py Merge branch '4.5' 2020-02-25 12:07:47 +01:00
CuraActions.py Fix bunch of issues found by pylint 2020-01-10 16:37:46 +01:00
CuraApplication.py WIP: Make it work with Python 3.7 packaing 2020-02-07 23:14:47 +01:00
CuraPackageManager.py Fix typing in __init__ methods to appease MYPY 2020-01-14 21:56:06 +01:00
CuraVersion.py.in Make Marketplace link configurable from the build system 2020-01-28 11:52:46 +01:00
CuraView.py Fix bunch of issues found by pylint 2020-01-10 16:37:46 +01:00
Layer.py Add some missing typing 2020-01-10 14:58:53 +01:00
LayerData.py Codestyle fixes 2020-01-10 15:32:53 +01:00
LayerDataBuilder.py Removed unused function & added more typing 2019-01-25 13:52:41 +01:00
LayerDataDecorator.py Add some missing typing 2020-01-10 14:58:53 +01:00
LayerPolygon.py Fix some more typing 2020-01-10 18:03:20 +01:00
MachineAction.py Use loader for machine actions in dialog 2019-05-06 13:06:23 +02:00
MultiplyObjectsJob.py Fix bunch of issues found by pylint 2020-01-10 16:37:46 +01:00
OneAtATimeIterator.py Fix typing in __init__ methods to appease MYPY 2020-01-14 21:56:06 +01:00
PickingPass.py Fix some more code-style 2018-07-03 13:09:05 +02:00
PlatformPhysics.py Use QtApplication instead of Application 2019-11-08 14:13:19 +01:00
PreviewPass.py Fix bunch of issues found by pylint 2020-01-10 16:37:46 +01:00
PrinterOutputDevice.py Fix typo in a log warning message 2019-05-16 12:04:26 +02:00
PrintJobPreviewImageProvider.py Codestyle fixes 2020-01-10 15:32:53 +01:00
SingleInstance.py Consider user preference when opening project files from cli. 2019-10-01 11:54:53 +02:00
Snapshot.py Add extra exception handling for UFPwriter 2019-09-24 09:24:36 +02:00
UltimakerCloudAuthentication.py Use sane default when CuraCloudApiVersion is not set 2019-01-17 16:14:57 +01:00