Instead of cloning the 2.85 mm generic PLA material and setting its diameter, we now clone the generic PLA with the same diameter as the current machine. This will also clone all the machine-specific settings included in that base file.
We do not load the extruders in a fixed order, thus we cannot assume
that addExtruder is called in the right order. This means that index 0
of the extruders is not necessarily the extruder with position 0. So
instead, use the extruder position as a dict key.
Contributes to CURA-3738
With limit_to_extruder, we always try to get the value of a setting from
an extruder. However, if the setting is not settable_per_extruder we
bypass the extruder and go directly to the global stack. This would
cause an infinite recursion.
Contributes to CURA-3738
* 'transparent_limit_to_extruder' of github.com:ultimaker/Cura:
Removed unused imports
Fixed type hinting for Extruder stack
Fixed two remaining failing unit tests
Fixes unit fallthrough unit test
The cause for this change is that TPU says we want to print with brim but CPE wants to print with raft.
In those cases the resolve function would choose the raft because that's safer.
However if the default extruder happens to be the TPU one you then get a raft made of TPU which is flexible.
That defeats the purpose of the raft, and causes the raft to warp, clog on the nozzle, destroy the world, etc. So there, I saved the world once more.
This reverts commit 396f4381dd13e34a144aa3c5d0a5a0569f6c9341.
The comit introduced an infinite recursion.
You cannot have both a limit_to_extruder and settable_per_extruder=false
* 'master' of github.com:ultimaker/Cura: (94 commits)
Re-enable Japanese from language selection menu
Add Japanese translations for setting descriptions
Update PVA profiles
Changed profile names
Simplified some code
Changed final spot where we still used findContainer when looking for container with specific type
Directly use property instead of searching
Added a type hinting to QualityManager
JSON description fix: warn users when not to use spiralize (CURA-3636)
Add setting_version every time we create InstanceContainer
Increase warning value for gradual infill steps
Convert all metadata fields to string
cleanup: prime => prime blob and lil doc (CURA-3634)
fix: don't make disallowed area if blob is disabled (CURA-3634)
Be robust against older specification version numbers
Read setting_version from version attribute on root
Added bunch of typing to extruder manager
Fix resolve strategy "new" for user instance container
Added missing typehinting
Row element was not used
...