Commit graph

24795 commits

Author SHA1 Message Date
Ghostkeeper
92691f68b6
Reduce retraction at the end of all Anet g-code
Multiple people have found this to work better.

Fixes #7275.
2020-03-26 14:47:41 +01:00
Ghostkeeper
fd8c29ebbf
Merge branch 'master' of github.com:Ultimaker/Cura 2020-03-26 14:15:51 +01:00
Ghostkeeper
ae9f2b4ba9
Catch TopologicalError when calculating convex hull intersection
Apparently this can happen. I don't know what shapes this happens with though. I'm guessing it's got something to do with degenerate shapes.

Fixes Sentry issue CURA-DZ.
2020-03-26 14:15:38 +01:00
Remco Burema
e664eccb8d
Merge pull request #7299 from Ultimaker/CURA-7173_validate_uploads
CURA-7173_validate_uploads
2020-03-26 12:05:19 +01:00
Deltacomb
f61051e4e7 New Machines Fixes (3) 2020-03-26 10:28:05 +01:00
Deltacomb
f81889a3bc New Machines Fixes (2) 2020-03-26 10:04:33 +01:00
Nino van Hooff
ddd7d15287 Attempt to appease mypy 2020-03-26 09:45:26 +01:00
Deltacomb
9012dd7c52 Fixed IDs in extruders 2020-03-26 00:53:09 +01:00
Deltacomb
16bd9f4f1d New Deltacomb Models and updates 2020-03-26 00:28:31 +01:00
Gabriele Rossetti
d196e77f72
Merge pull request #2 from Ultimaker/master
Merge to master
2020-03-26 00:18:48 +01:00
Ghostkeeper
986284052d
Show warning on any invalid pixel, not just 10
Now that we have no noise any more we can do this.
Possibly cuts the processing time in half, too.

Contributes to issue CURA-7262.
2020-03-25 18:57:30 +01:00
Ghostkeeper
c2651d1141
Unobfuscate and document this SVG
These numbers end up beautifully on round numbers if you were to just scale them to their original size and apply these mysterious translation operations.
Also do away with all of the Inkscape and Sodipodi metadata. They don't make it any easier to read.

Contributes to issue CURA-7262.
2020-03-25 18:51:09 +01:00
Ghostkeeper
4c770587e2
Fix getting additional bytes from QImage
QImage's bytes are aligned to memory words per column of pixels. That means that one of these columns contains 99% valid image data, but with several bytes of unassigned noise at the end. How many of these padding bytes there are would depend on the image size, i.e. Cura's window size. In the end, the total number of bytes in the image ends up slightly more than w*h*3. As a result, Cura would crash because it couldn't reshape the image. Reshaping was completely unnecessary anyway, but this random noise was giving false positives also.
But how do you then get only the actual pixels from each column of data? We can't just go iterating over this array, as that would be an iteration of thousands of columns which is prohibitively slow in Python. No, we're going to do some Numpy magic. We're going to create a class that pretends to be a Numpy array. Give this class some data and say that this data has a certain pixel size but also a certain STRIDE LENGTH. This stride length can be the length of the actual pixel data. As a result when Numpy sees this object it will read out the data using these strides, all done efficiently within the C code of Numpy.

Framerate is fantastic on my computer. No problems at all. Pretty powerful computer though. But also a big 5k screen. Still no problem for Numpy. Seems to be decently efficient.

Took me quite a while to figure all of this out.

Contributes to issue CURA-7262.
2020-03-25 18:00:14 +01:00
Nino van Hooff
3bb3b69082 Attempt to appease mypy 2020-03-25 17:32:41 +01:00
Nino van Hooff
92f278acc8 Change trusted scripts path from resources to plugin/scripts
CURA-7319
2020-03-25 16:54:43 +01:00
Nino van Hooff
6bf00d7ea1 Merge branch 'master' into ppscript_pre_secure 2020-03-25 16:25:44 +01:00
Ghostkeeper
433c9a9f60
Add SVGToolpathReader to gitignore
I like to have no untracked files in my list. This is not going to get into our source repository anyway!
2020-03-25 16:08:26 +01:00
Ghostkeeper
a4fbf3c613
Move X-ray set-up code into _checkSetup
That's what that function is meant for. It's executing essentially the same, since before it was executed right after the call to _checkSetup() and now it's at the end inside that function.

Contributes to issue CURA-7262.
2020-03-25 15:13:33 +01:00
Jaime van Kessel
dec68002bc
Use patch.object to temporarily replace mock a function call
CURA-7319
2020-03-25 12:35:15 +01:00
Jaime van Kessel
d5b58cf3b4
Add missing typing 2020-03-25 11:47:38 +01:00
Ghostkeeper
2b003c30dc
Catch PermissionError when writing workspaces
We'll want to give a proper error message then. We have no mechanism right now to show a message on the screen particular to this error. Instead we'll let it fail (the user sees a message that writing fails) and put a message in the log why it failed.

Fixes Sentry error CURA-DK.
2020-03-25 09:12:14 +01:00
Ghostkeeper
0150f37937
Merge branch 'master' into xray_in_solid_view 2020-03-24 21:45:48 +01:00
konskarm
7ab005e423
Merge pull request #7312 from maukcc/master
HMS434 update
2020-03-24 17:33:32 +01:00
Kostas Karmas
136fc90f48 Merge branch 'master' into CURA-7310_Template_export_inkection_call_custom_openUrl 2020-03-24 16:59:27 +01:00
Nino van Hooff
fefdef6781
Merge pull request #7136 from hussainsail2002/master
Adding Fabx Pro Machine
2020-03-24 16:54:14 +01:00
Kostas Karmas
eaef9f0f45 Open plugin author page with custom openUrl
CURA-7310
2020-03-24 16:42:46 +01:00
Kostas Karmas
4f0f7dec5e Open material author page with custom openUrl
CURA-7310
2020-03-24 16:42:22 +01:00
Kostas Karmas
92cef02ee5 Open "buy material spool" with custom openUrl
CURA-7310
2020-03-24 16:38:25 +01:00
Kostas Karmas
e003d76c1e Open links in materials with custom openUrl
CURA-7310
2020-03-24 16:36:09 +01:00
Nino van Hooff
c0d2977f4d Cleanup test_enterprise_signed_user_script_allowed
CURA-7319
2020-03-24 16:28:43 +01:00
Nino van Hooff
5b045f89b1 Finish postprocessing script signature checking
CURA-7319
2020-03-24 16:24:24 +01:00
Remco Burema
ce02856eb5
Merge pull request #7341 from Ultimaker/matt-staging
Updated Cloud sign in strings CURA-7314
2020-03-24 16:05:41 +01:00
Remco Burema
60d3242595
Merge pull request #7331 from fieldOfView/hide_deltabot
Hide deltabot from Add Printer dialog
2020-03-24 15:31:04 +01:00
Ghostkeeper
8e324c594e
Adjust wall thickness to 1 line if using spiralise
Except for printers that explicitly override it.

Fixes #7317.
2020-03-24 14:22:28 +01:00
Ghostkeeper
5cdf1adccc
Fix duplicate shortcut keys 2020-03-24 13:18:50 +01:00
Ghostkeeper
a551492ebb
Adjust start g-code to not mix 50/50 by default
This new start g-code has been tested on the A20 by @leshuguets in issue thread #7280.
2020-03-24 13:12:56 +01:00
Matt Jani
0516756c3b Summary
Updated Cloud sign in strings CURA-7314
2020-03-24 12:54:38 +01:00
Nino van Hooff
7f89c7e740 Merge branch 'master' into ppscript_pre_secure 2020-03-24 11:37:53 +01:00
Jaime van Kessel
2d82538996
Merge branch 'CURA-7313_s3s5_intent_profile_update' of github.com:Ultimaker/Cura 2020-03-24 11:33:59 +01:00
Remco Burema
c20b2c6ee0
Merge pull request #7211 from Ultimaker/CURA-7150_proper_http_request_headers
CURA-7150_proper_http_request_headers
2020-03-24 11:25:07 +01:00
Ghostkeeper
0fd6044c70
Fixes for translations and some missing bits 2020-03-24 09:44:20 +01:00
Ghostkeeper
cdcf3a9df8
Interpunction corrections to Hungarian translation
These are important as they are used as dividers in our interface.
2020-03-24 09:43:57 +01:00
Ghostkeeper
37673691fd
Clarify tooltip about resolution between per-extruder values
It was using a bit of programmer jargon there that was very hard to understand. Initially I was coming in here to remove the space at the end of the translated string but I'm now changing all of it to make it more clear to the user as well.

Done as a 5 minute fix.
2020-03-24 09:35:10 +01:00
Ghostkeeper
c6fde82ec1
Merge branch 'master' of https://github.com/greatnam/Cura into greatnam-master 2020-03-24 09:16:49 +01:00
Hussain Bhavnagarwala
2108418397
Update fabxpro_pla_normal.inst.cfg 2020-03-24 13:24:18 +05:30
Hussain Bhavnagarwala
94bebdae17
Update fabxpro_pla_fine.inst.cfg 2020-03-24 13:23:47 +05:30
Hussain Bhavnagarwala
95daab37e0
Update fabxpro_pla_draft.inst.cfg 2020-03-24 13:23:25 +05:30
Hussain Bhavnagarwala
fda42406f3
Update fabxpro_abs_draft.inst.cfg 2020-03-24 13:23:08 +05:30
Hussain Bhavnagarwala
348b54ff81
Update fabxpro_abs_normal.inst.cfg 2020-03-24 13:22:53 +05:30
Hussain Bhavnagarwala
9a927ba363
Update fabxpro_abs_fine.inst.cfg 2020-03-24 13:22:36 +05:30