7447 Commits

Author SHA1 Message Date
Remco Burema
8d6cbdf673
Fix long materials title causes misalign.
CURA-7240
2020-04-01 17:57:33 +02:00
Remco Burema
07569c6b88
Fix extra line after plugin/materials list.
CURA-7240
2020-04-01 17:54:56 +02:00
Ghostkeeper
4edef85346
Code style: Space around binary operators
Contributes to issue CURA-7240.
2020-04-01 17:35:40 +02:00
Ghostkeeper
869f26a5ba
Fix crash when entering nonsense numbers like '-'
We shouldn't accept those in the input field at all in my opinion but that is for another time.

Fixes Sentry issue CURA-F5.
2020-04-01 16:34:49 +02:00
Ghostkeeper
2aeca3ef8c
Add version upgrade for 4.6 to 4.7 to halve the maximum deviation
Contributes to issue CURA-7282.
2020-04-01 15:05:18 +02:00
Ghostkeeper
81df313f3a
Fix documentation for upgrade functions
There are no settings to rename. That documentation was outdated.
2020-04-01 14:58:30 +02:00
Remco Burema
90ffa2a772
Explain empty installed materials/plugins brackets.
part of CURA-7240
2020-03-31 16:56:45 +02:00
Jaime van Kessel
c764326c25
Fix marketplace installed plugins/materials empty rectangle
CURA-7240
2020-03-31 15:57:08 +02:00
konskarm
cbccb08103
Merge pull request #7370 from Ultimaker/CURA-7328_remove_unused_machine_settings
Remove unused machine settings
2020-03-31 14:41:41 +02:00
Remco Burema
d89fce6240
Order bundled/installed packages/materials section.
And other finishing touches.
part of CURA-7240
2020-03-31 12:02:46 +02:00
Remco Burema
85490dc58a
[Marketplace] De-emphasize pre-installed packages.
Tried to do it the elegant way, couldn't get that to work within timebox.
part of CURA-7240
2020-03-31 11:52:55 +02:00
fieldOfView
ccc0589495 Remove the checkbox option to set the preference to hide the messagebox 2020-03-31 11:50:16 +02:00
Kostas Karmas
189c734145 Changed wrapMode to WordWrap, similar to master
CURA-7332
2020-03-31 11:41:03 +02:00
fieldOfView
b7898b5a97 Change preference to only hide the xray message, not the visualization 2020-03-31 11:39:05 +02:00
fieldOfView
a2f9eac23b Remove unused import 2020-03-31 11:29:34 +02:00
Kostas Karmas
6b6446e201 Wrap the restart prompt text in Marketplace
CURA-7332
2020-03-31 11:22:07 +02:00
Aldo Hoeben
7ea3891da0
Merge branch 'master' into feature_unify_pause_at_height 2020-03-30 17:58:25 +02:00
Jaime van Kessel
329c5c5c11
Rename pause duration to disarm timeout and set default to give same behavior as before
The name wasn't really covering what it was doing. It wasn't setting the duration of the
pause, it was setting the timeout for the stepper disarm.
Also, ive set the defaults so that the behavior remains the same, unlesss a user
explicitly enables this

CURA-7331
2020-03-30 17:20:59 +02:00
Jaime van Kessel
4682b9c4ae
Merge branch 'pp-plugin_pause-a-h_disarm' of https://github.com/ilyko96/Cura 2020-03-30 17:12:54 +02:00
konskarm
bba6a5cc39
Merge pull request #7144 from Ultimaker/CURA-7162/replace_robot_with_placeholder
CURA-7162/Replace the default logobot.svg with a new placeholder
2020-03-30 15:05:37 +02:00
Ghostkeeper
f34edd6bec
Show error when we don't have permission to write workspace
Fixes several Sentry issues, among which Cura-EG.
2020-03-30 14:00:36 +02:00
Ghostkeeper
40fc064e98
Don't remove Nozzle Length
Turns out this one was used: As default for the wire printing height.

Contributes to issue CURA-7328.
2020-03-30 12:10:01 +02:00
Ghostkeeper
b5dfcdd482
Remove Nozzle Length and Filament Park Distance from the settings list
Implements CURA-7328.
2020-03-30 12:00:59 +02:00
Ghostkeeper
bdb3c4bcad
Add version upgrade plug-in to remove settings
Contributes to issue CURA-7328.
2020-03-30 11:48:38 +02:00
Ghostkeeper
be85e6d75e
Merge branch 'fieldOfView-feature_object_name' 2020-03-30 09:32:27 +02:00
fieldOfView
0794766644 Fix xray composite shader for opengl 2.1
textureSize() is not available in opengl 2.1, so we calculate the xray error image scale outside the shader (which is also a theoretical performance improvement because now the scale does not get computed over and over for each pixel)
2020-03-27 23:24:20 +01:00
konskarm
cc365c23e1
Merge pull request #6994 from Ultimaker/ppscript_pre_secure
Prepare PostProcessingPlugin for security.
2020-03-27 13:31:08 +01:00
Ghostkeeper
afea4a76e7
Merge branch 'feature_object_name' of https://github.com/fieldOfView/Cura into fieldOfView-feature_object_name 2020-03-26 17:39:25 +01:00
Nino van Hooff
0841124389
Merge pull request #7344 from Ultimaker/CURA-7310_Template_export_inkection_call_custom_openUrl
Cura 7310 template export injection call custom open url
2020-03-26 15:40:39 +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
Nino van Hooff
ddd7d15287 Attempt to appease mypy 2020-03-26 09:45:26 +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
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
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
Kostas Karmas
136fc90f48 Merge branch 'master' into CURA-7310_Template_export_inkection_call_custom_openUrl 2020-03-24 16:59:27 +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
Nino van Hooff
7f89c7e740 Merge branch 'master' into ppscript_pre_secure 2020-03-24 11:37:53 +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