Jaime van Kessel
9a0264644b
Simplify the _shouldResolve function
...
This increases the speed of the setting resolvement.
2020-08-14 13:41:20 +02:00
Jaime van Kessel
dd42c87da7
Merge branch 'CURA-7646_Settings_not_applied_when_creating_new_CFFF_from_project_file' of github.com:Ultimaker/Cura into 4.7
2020-08-12 13:42:14 +02:00
Jaime van Kessel
e42369179f
Merge branch '4.7' of github.com:Ultimaker/Cura into 4.7
2020-08-11 11:38:31 +02:00
Kostas Karmas
61cc8c9a95
Remove reference to JIRA ticket in comments
...
CURA-7646
2020-08-10 14:58:59 +02:00
Kostas Karmas
2828f45e89
Add optional machine_extruder_count when creating a machine
...
If the machine_extruder_count is not taken into consideration on machine creation, calling the
extruderList of that machine will return an incomplete list of extruders (since it considers the
default machine_extruder_count). This causes problems in machines with settable number of extruders
where the default machine_extruder_count is 1 while the machine may have more than 1 extruders.
The problem becomes especially visible when opening a project file with e.g. a CFFF with multiple
extruders, because when the machine is created we do not know yet how many extruders the printer
actually has.
CURA-7646
2020-08-10 14:49:41 +02:00
Ghostkeeper
e7d95f6d90
Give an error message when stack fails to build
...
This way we may venture at a reason why it failed to build.
2020-08-10 11:26:09 +02:00
Jaime van Kessel
724498cba7
Reset quality if none was found
...
CURA-7589
2020-08-06 17:12:14 +02:00
Jaime van Kessel
f9c6bbb092
Fix strict noneCHeck mypy issue
2020-07-29 12:24:38 +02:00
Jaime van Kessel
fb2f40fba7
Add missing typing
2020-07-29 12:12:54 +02:00
Jaime van Kessel
65377770c4
Remove invalid quality_changes from the container registry
...
Fixes CURA-3T
2020-07-29 12:03:03 +02:00
Jaime van Kessel
6934e9521f
Make sure that loading an invalid container gets handled correctly
...
Previously it would still add them, which caused issues.
2020-07-29 11:08:10 +02:00
Nino van Hooff
649cc4a881
Replace support_tree_enable by a support_structure enum
...
CURA-6711
2020-07-09 17:17:40 +02:00
Konstantinos Karmas
c6fd25e7e9
Merge pull request #7971 from Ultimaker/CURA-7106-Speedup-multiple-objects-on-build-plate
...
CURA-7106 Speedup multiple objects on build plate
2020-06-29 12:36:02 +02:00
Ghostkeeper
ffac9adb96
Add default for extruder position
...
The position argument metadata always be there. However if it's not (because the file is old, or manually modified, or a version upgrade worked incorrectly, or whatever) then we shouldn't crash. We just don't know how to order it correctly then. This tries to repair it as best it can.
2020-06-25 15:08:08 +02:00
Jaime van Kessel
68807d99d2
Fix issue that no disallowed areas were show if there were no active objects
...
CURA-7106
2020-06-24 15:18:20 +02:00
Jaime van Kessel
7e8e051eb2
Short circuit finding the extruders that are active
...
CURA-7106
2020-06-23 13:38:00 +02:00
Jaime van Kessel
f9b288f3c6
Move checking for some global features outside of the per node loop
...
CURA-7106
2020-06-23 13:24:22 +02:00
Jaime van Kessel
1f698fd664
Further simplify the getUsedExtruderStacks function
...
Should be a tiny bit faster
CURA-7106
2020-06-23 13:13:49 +02:00
Jaime van Kessel
1d9c92c47f
Use cached values for anti overhang and support mesh
...
CURA-7106
2020-06-23 13:08:03 +02:00
Jaime van Kessel
1dc688dd4a
Prevent double updateNextStack during deepcopy
...
CURA-7106
2020-06-23 11:40:52 +02:00
Jaime van Kessel
4729bd1d0f
Remove unneeded check from deepcopy of settingoverride decorator
...
CURA-7106
2020-06-23 11:32:57 +02:00
Kostas Karmas
d0d7e671ed
Make the deletion of the definitionChanges safer
...
Just in case findContainerStacks returns an empty list
2020-06-23 10:56:48 +02:00
Jaime van Kessel
737a9faa5f
Speed up the objects model
...
It was using a few expensive calls that had already been cached.
CURA-7106
2020-06-23 10:32:42 +02:00
Jaime van Kessel
16bc2071ee
Cache values to speed up the rendering
...
CURA-7106
2020-06-22 16:49:42 +02:00
Jaime van Kessel
1b973b3f3c
Remove bit of code duplication
...
CURA-7106
2020-06-22 16:31:37 +02:00
Nino van Hooff
5e921698b2
Merge pull request #7947 from Ultimaker/CURA-7522_Removing_printer_created_by_projectfile_removes_original_printer
...
CURA-7522: Removing printer created by project file also removes the original printer
2020-06-19 16:39:03 +02:00
Jaime van Kessel
f0002e265b
Mark recently constructed stacks as not dirty
...
The stacks would get marked dirty for setting some metadata, but since thats
part of their construction, they aren't really dirty.
Previously, every single stack that was loaded would be marked as dirty, which causes unneeded
saving.
2020-06-18 17:39:58 +02:00
Kostas Karmas
364769d821
Remove only the hidden printers when removing a printers
...
When printers share the same group_id, they are removed, regardless if
they are hidden or not. This was resulting in sometimes removing
multiple printers when removing a printer that was created by a project
file.
This PR fixes that by actually checking whether the printer to be
removed is hidden.
CURA-7522
2020-06-18 13:49:50 +02:00
Jaime van Kessel
466ec7c42a
Remove duplicated variable
...
It was holding the same data as extruders_to_disable
2020-06-18 11:08:17 +02:00
Jaime van Kessel
930d92869a
Fix syncing empty material with cloud
...
For some reason the cloud gives a 0000 guid when the material is empty.
2020-06-18 11:03:40 +02:00
Kostas Karmas
984426fabb
Merge branch 'master' into CURA-7454_Add_remove_printers_button_in_removed_printers_from_account_message
2020-06-10 12:06:41 +02:00
Nino van Hooff
feeeb972f7
Merge pull request #7873 from Ultimaker/CURA-7438_Show_cloud_connection_not_available_printer_removed_from_account
...
CURA-7438 Handle the case when a cloud printer is removed from the account
2020-06-10 11:46:10 +02:00
Jaime van Kessel
ed53557044
Merge branch 'master' of github.com:Ultimaker/Cura
2020-06-09 16:53:33 +02:00
Kostas Karmas
8c6a7d3098
Remove definitionChanges before removing a printer
...
When removing a printer, the files in %appdata%/cura/<version>/
/definition_changes/ remained intact. This commit fixes that by
making sure that the definitionChanges are removed before removing
the machine.
2020-06-09 15:56:13 +02:00
Kostas Karmas
5c898b8c57
Allow the machine manager to set an empty active machine
...
Gracefully handle the case where the machine manager is requested to
delete the last machine in Cura. In this case, instead of deleting
everything of this machine and still keep it as an active machine,
the machine manager will set the active machine to None.
The QML files which depend on the active machine were changed to
properly handle themselves when there is no active machine.
CURA-7454
2020-06-09 15:33:22 +02:00
Nino van Hooff
1024879f9d
Process Review feedback for CURA-7438
...
Renames UltimakerCloudAuthentication to UltimakerCloudConstants
Cura-7438
2020-06-09 13:41:30 +02:00
Kostas Karmas
458b439a9a
Rename META_REMOVED_FROM_ACCOUNT to META_LINKED_TO_ACCOUNT
...
The meta data entry was rename to be more representative of its
function. In addition, the bool metadata entry is now properly
handled using the parseBool function.
CURA-7438
2020-06-04 16:14:09 +02:00
Kostas Karmas
4bebaaaddb
Display an appropriate tooltip when device is removed from the account
...
The tooltip is updated to reflect the case where a cloud printer is
removed from the users account.
CURA-7438
2020-06-04 15:08:27 +02:00
Nino van Hooff
80a5b53aad
Store the printer cluster size as a metadata entry on the machine
...
This makes the cluster size also available when the machine is offline.
Also fixes an issue where the cluster size is improperly restored
once the internet connection comes back online, resulting in the printer
showing as a single printer until next sync
CURA-7347
2020-06-03 13:59:51 +02:00
Ghostkeeper
e68ebb198e
Don't use deprecated extruders property
...
Done during Turbo Testing and Tooling.
2020-05-29 18:14:21 +02:00
Nino van Hooff
89f0970a88
Remove trailing whitespace from Python files
2020-05-29 14:30:33 +02:00
Nino van Hooff
58ffc9dcae
Merge remote-tracking branch 'origin/master' into doxygen_to_restructuredtext_comments
...
# Conflicts:
# cura/API/__init__.py
# cura/Settings/CuraContainerRegistry.py
# cura/Settings/ExtruderManager.py
# plugins/PostProcessingPlugin/scripts/PauseAtHeight.py
# plugins/UM3NetworkPrinting/src/Cloud/CloudApiClient.py
# plugins/UM3NetworkPrinting/src/Cloud/ToolPathUploader.py
# plugins/UM3NetworkPrinting/src/Network/LocalClusterOutputDeviceManager.py
2020-05-28 17:31:24 +02:00
Nino van Hooff
c2c96faf5f
Convert remaining doxygen to rst
2020-05-28 17:13:44 +02:00
Nino van Hooff
eef347ed6c
Add an cloud unavailable icon to the active printer icon
...
CURA-7437
2020-05-20 17:20:40 +02:00
Ghostkeeper
d499c6fdfe
Keep this position a string
...
We've set up enough defensive coding that this kept working, but the typing checker fails on it.
2020-05-15 18:50:20 +02:00
Ghostkeeper
acc8e24cb4
Use extruderList rather than extruders dictionary
...
The extruders dictionary has been deprecated.
Done during Turbo Testing and Tooling to reduce the amount of warnings in our log.
2020-05-15 16:07:19 +02:00
Ghostkeeper
17762cb431
Use extruderList rather than extruders to switch userChanges over
...
It's a bit weird that it switches the user changes over though. Won't it be a different printer type then?
2020-05-15 16:04:42 +02:00
Ghostkeeper
33c1901070
Replace another extruders() call with extruderList
...
The extruders function is deprecated.
Done during Turbo Testing and Tooling to reduce the number of warnings in our log.
2020-05-15 15:51:49 +02:00
Ghostkeeper
174a8e5411
Use extruderList rather than deprecated extruders
...
Done during Turbo Testing and Tooling to reduce the number of warnings in our log.
2020-05-15 15:50:03 +02:00
Ghostkeeper
a6d7b97abc
Use extruderList rather than deprecated extruders
...
Done during Turbo Testing and Tooling to reduce the number of warnings in our log.
2020-05-15 15:39:28 +02:00