26804 Commits

Author SHA1 Message Date
Ghostkeeper
591a2f89b8
Make getUserProfile return profile asynchronously
All via callbacks. Quite a mess.

Contributes to issue CURA-8539.
2021-11-19 15:29:29 +01:00
Remco Burema
c8b491e9e7
(High) limits for number of walls to prevent engine crash.
The engine would reserve space for each outline that should be there according to the count, not for each wall that was actually printed. Values of 999999 where chosen after discussion for _some_ of these (but not anything to do wit hskirt-brim, since we use those in the frontend for dissalowed areas) becasue then you can just fill a number of nines to get a completely 'walled' model printed.
2021-11-19 14:46:24 +01:00
Ghostkeeper
240e154be7
Merge branch 'feature_extruder_warning_icon' of https://github.com/fieldOfView/Cura into fieldOfView-feature_extruder_warning_icon 2021-11-19 14:13:49 +01:00
fieldOfView
e537fa562e Hide badge for disabled extruders
A configuration error or warning in a disabled extruder does not affect slicing or the available profiles for other extruder
2021-11-19 14:11:37 +01:00
Ghostkeeper
6601728741
Merge branch 'feature_extruder_warning_icon' of https://github.com/fieldOfView/Cura into fieldOfView-feature_extruder_warning_icon 2021-11-19 13:48:45 +01:00
fieldOfView
c805aac3cc Deactivate tooltip hover if there is no tooltip to show 2021-11-19 13:43:34 +01:00
Ghostkeeper
920d9b9d44
Make _parseJWT asynchronous as well
Now it calls checkToken correctly. However now this _parseJWT is not called correctly since there are things calling this one in an attempt to be synchronous again.
There is the additional issue that we can't call getAccessTokenUsingRefreshToken synchronously now, because this runs on the main thread and it will then block the main thread until the request is made, which is never because the request is also done on the main thread via Qt's event loop.

Contributes to issue CURA-8539.
2021-11-18 17:33:39 +01:00
Ghostkeeper
aff0764c1d
Add failed callback for when the request fails
Maybe we should add a parameter to this to respond with an error message. But maybe later.

Contributes to issue CURA-8539.
2021-11-18 17:19:05 +01:00
Ghostkeeper
a9990eaa75
Make parseJWT asynchronous
This involves returning the user profile via a callback.
No longer use the Requests library, which doesn't properly use the SSL certificates locally on the computer like the QNetworkManager does.

Contributes to issue CURA-8539.
2021-11-18 17:11:27 +01:00
Remco Burema
4a6f6475ee
Merge branch '4.12' 2021-11-18 16:05:50 +01:00
Remco Burema
26ad9766df
Merge pull request #10872 from Ultimaker/update-change-log
Update change log
4.12.1
2021-11-18 11:44:18 +01:00
Ghostkeeper
d6f8984cf0
Use integer positions for fixed items too
Pynest2d requires it. It seems the SIP version we're using is lenient for this, but newer SIP versions are not.

Fixes #10801.
2021-11-18 11:44:09 +01:00
fvrmr
d569742800 Update change log 2021-11-18 11:42:04 +01:00
Karl Nilsson
e0e227404f
Fix picking pixel on integer indices
The QImage.pixel() function should only get integers.
In theory an input position of -2,-2 would get rounded to 0 now. However that shouldn't occur because the user can't click outside of the window. And if it does occur, it's not really a problem either that it's theoretically picking a position inside of the window when you click slightly next to it.

Fixes #10785.
2021-11-18 11:36:20 +01:00
fvrmr
d266a9c8a1 Update change log
Updated the change log with two bug fixes
2021-11-18 11:25:13 +01:00
Ghostkeeper
3466404782
Expand limits for flow and 2nd and 3rd layers of bridging too
We removed the limit of density for the first bridging layer, but there are more settings for that, and there's a similar arbitrary limit for flow in place.

Contributes to issue CURA-8639 and #10736.
2021-11-18 11:10:09 +01:00
fieldOfView
9ebd8524ad Use badge icons 2021-11-18 10:53:35 +01:00
fieldOfView
77cfd8218a Add warning and error badge icons 2021-11-18 10:23:53 +01:00
fieldOfView
c6b6af668d Fix shader compilation on some GPUs
Some GPUs (rightly) complain about the difference between a float and an int. Fixes #10837
2021-11-18 08:04:14 +01:00
Jaime van Kessel
6a988c8fa0 Remove incorrect authors of profiles
Ultimaker didn't make these profiles, so it shouldn't be listed here
2021-11-17 17:01:30 +01:00
Ghostkeeper
f1c763ad9f
Use HttpRequestManager to acquire new tokens
This is a re-write from a previous attempt. Instead of requests, which doesn't properly use SSL certificates installed on the computer among other things, we'll now use the HttpRequestManager which uses QNetworkManager under the hood and properly uses system settings.
The QNetworkManager is asynchronous which would normally be very nice, but due to the nature of this call we want to make it synchronous so we'll use a lock here.

Contributes to issue CURA-8539.
2021-11-17 14:32:53 +01:00
Philip Rueker
5e9becc4f9 Fix initial layer bed and print head temperature in start gcode script for Snapmaker 2021-11-16 11:05:37 -08:00
fieldOfView
452aa4cc1c Add a tooltip explaining the status of the extruder 2021-11-16 16:05:02 +01:00
fieldOfView
d1f21ec7c4 Adjust size and position of extruder warning "badges" 2021-11-16 15:34:10 +01:00
Ghostkeeper
a292524af6
Correct German translation of indicating a time
This is better grammar.

Further improvement for #10718.
2021-11-16 15:16:18 +01:00
fieldOfView
19dbd1f168 Merge branch 'master' into feature_extruder_warning_icon 2021-11-16 14:56:43 +01:00
Ghostkeeper
caa9a6bfc4
Merge branch 'patch-1' of https://github.com/Ladnessness/Cura into Ladnessness-patch-1 2021-11-16 14:54:58 +01:00
Remco Burema
f0cb9dd39e
Workaround for if layer is None somehow. 2021-11-16 12:33:29 +01:00
Rijk van Manen
304599326d no infill overlap for high density infill
To avoid over extrusion for high density infill in overlap needs to be set to zero. (see PP-25)
2021-11-16 09:59:02 +01:00
Rijk van Manen
d3951a1a59 change infill pattern to zigzag for >80% infill
This is done for all ultimaker profiles (PP-25).
2021-11-15 15:29:40 +01:00
Rijk van Manen
35550fc1b4 revert 100% density pattern hack
In the fdmprinter definition the 'infill' is created by 999999 bottom layers to change to infill pattern to lines. This hack is reverted for ultimaker printers. More info: PP-25
2021-11-15 15:23:17 +01:00
Ghostkeeper
5e60cc6208
Merge branch 'bremco-graphics_buffer_update' 2021-11-15 15:20:10 +01:00
Ghostkeeper
dc28370178
Remove implicit casts and comparisons of int to float
We can't change this index to an integer, because varying variables can't be integer, even though this variable will only really be tested on vertex level. Not sure if varying was the right choice, but I don't want to change that.
This prevents a crash, probably only occurring on certain GPUs.

Contributes to issue CURA-8657.
2021-11-15 15:19:57 +01:00
Ghostkeeper
c9feace0fb
Change user-visible name of Maximum Feedrate to Maximum Speed E
Maximum Feedrate was correct, but compared to the names of the X/Y/Z maximum speeds, this is considered to be more consistent.

Fixes #10767.
2021-11-15 10:59:58 +01:00
Ghostkeeper
d12d756b1d
Move machine_height to the other machine dimension settings
It's quite logical that the 3 dimensions of the printer are next to each other...

Found during work on a plug-in.
2021-11-13 16:42:06 +01:00
Ghostkeeper
6171107140
Remove upper limit of bridge skin density
There is no theoretical or algorithmic limit here. We may warn the user, but not prevent them from changing it.

Done as a five minute fix. Fixes CURA-8693. Fixes #10736.
2021-11-11 15:45:47 +01:00
Jaime van Kessel
136aa45172 Merge branch '4.12' of github.com:Ultimaker/Cura 2021-11-11 15:32:39 +01:00
Ghostkeeper
b4f10bab71
Merge branch 'PP-55_reduce-cross3D-top-layer-bridge-distance' 2021-11-11 12:34:58 +01:00
Ladnessness
066859198a
Update requirements.txt 2021-11-11 18:12:51 +11:00
Jaime van Kessel
8998738237
Merge pull request #10774 from luzpaz/typos
Fix typos
2021-11-09 17:04:54 +01:00
luz paz
61d7895588 Fix typos
Found via `codespell -q 3 -S *.po,*.pot -L childs,initialy,lod,ned,te,slicable,sur,tutoriels,wont`
2021-11-09 10:38:01 -05:00
Jaime van Kessel
b1f797f6cb Merge branch 'master' of github.com:Ultimaker/Cura 2021-11-09 15:10:39 +01:00
Jaime van Kessel
c1a839ccaa Also ensure that extruder settings are correct when discarding unsaved changes
CURA-8584
2021-11-09 15:10:09 +01:00
Ghostkeeper
ca942a15e8
Don't use infinite lifetimes lightly
This is very annoying if switching profiles. This is not a critical message. The message should disappear after the default amount of time.

Discovered while working on CURA-8584.
2021-11-09 14:45:40 +01:00
Jelle Spijker
40be115b17
Use Spanish translation for lightning infill
Contributes to CURA-8638
4.12.0
2021-11-09 10:53:07 +01:00
fvrmr
75a77bf34f Update change log
Fixed some typo's
2021-11-09 10:31:21 +01:00
fvrmr
ad5937ee6a Updated whats new pages
Updated whats new pages and images
Updated the change log
2021-11-09 10:18:00 +01:00
Jaime van Kessel
73ca50d958 Handle exception when adhesion extruder could not be found
This should be pretty rare; the crash would only happen due to a race condition

cura-8584
2021-11-09 10:17:32 +01:00
Remco Burema
51c5572f0f
Add draw-range behaviour to legacy-mode shaders. 2021-11-08 21:39:12 +01:00
Remco Burema
f486177465
Remove dead (shader) code.
These shader (files) are now only used for compatability mode. The 'modern' code is found in the '...3d.shader' versions of these files.
2021-11-08 21:37:57 +01:00