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
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
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
Ghostkeeper
b231a4b3a2
Remove unnecessary re-adding of extruders
...
This was originally added for backwards compatibility with old versions of Uranium. However the link between Cura versions and Uranium versions is already very strong (Cura crashes with old Uranium versions) so this is not necessary.
It was also adding warnings in our log that these extruders had already been added to the printer.
Done during Turbo Testing and Tooling, to clean up our log files.
2020-05-15 14:26:44 +02:00
Ghostkeeper
3d399672d0
Select default extruder if a setting has an extruder nr that's not available
...
Fixes Sentry issue CURA-G2.
2020-04-07 13:45:41 +02:00
Ghostkeeper
d18c0703b4
Fix getting correct initial extruder number
...
As found in the discussion in #6847 .
This was done as a 5 minute fix.
2020-01-16 13:59:02 +01:00
Jaime van Kessel
00078fd659
Remove a bunch of unused imports
2019-11-08 13:38:42 +01:00
ninovanhooff
b9b086a8c0
Merge pull request #6542 from Ultimaker/CURA-6793_performance
...
Performance improvements
2019-10-23 16:50:04 +02:00
Lipu Fei
7544d049c5
Remove deprecated ExtruderManager.getExtruderName
...
CURA-6858
2019-10-22 14:11:40 +02:00
Ghostkeeper
0238f65e6a
Remove double call of _onGlobalContainerChanged and activeExtruderChanged on switching
...
When switching printers, it would first emit the global container changed signal which connects to _onGlobalContainerChanged, then update stuff in the extruder manager, then manually call _onGlobalContainerChanged again to update some other stuff with the new data from the extruder manager. This was prohibitively expensive, so this prevents that.
Another double or triple emit of the activeExtruderChanged was removed in the extruder manager when creating the extruders for a printer: It would first set the extruder number to 0, possibly emitting the signal, then emit the signal just to be sure since the extruder itself changed (rather than just the number), and then change the extruder number to the preferred extruder, possibly again emitting a signal. Now it just sets the extruder number to the preferred extruder and always emits the signal once (either through setting the extruder number or manually afterwards).
Contributes to issue CURA-6793.
2019-10-08 16:32:20 +02:00
Ghostkeeper
dd8ee2e3d8
Switch early fail around to reduce indentation
...
Makes this more readable.
Contributes to issue CURA-6793.
2019-10-08 15:22:12 +02:00
Ghostkeeper
b137e6a36d
Don't add extruders twice upon start-up
...
The extruders are added when changing printers anyway, and we call this change signal upon start-up. So one of them is going to do unnecessary work.
Contributes to issue CURA-6793.
2019-10-08 15:21:19 +02:00
Jaime van Kessel
0ff9d72c4c
Remove use of deprecated extruders property
2019-09-13 17:27:16 +02:00
Lipu Fei
c841382bbd
Add more info in exceptions
2019-08-02 11:12:16 +02:00
Jaime van Kessel
d8ddcba091
Fix typing ignore for breath frist iterator
2019-07-23 13:40:40 +02:00
Jaime van Kessel
9ceb9ce18b
Fix typing issues
...
They were caused by upgrading to a higher mypy version, which found more mistakes
2019-07-23 12:58:46 +02:00
Jaime van Kessel
1c93dffc22
Added deprecation warning to getExtruderName
2019-07-19 13:36:53 +02:00
Jaime van Kessel
f329d7aed9
Made typing hint a bit more specific
2019-06-28 15:08:46 +02:00
Jaime van Kessel
1759e01b27
Make _geSettingFromAllExtruders use zip
...
This is a bit cleaner to use
2019-06-07 13:40:41 +02:00
Jaime van Kessel
915e0e2047
Only add extrudernr to used extruders if it actually exists
...
This can cause issues when a profile got messed up (especially when using profiles between different custom machines)
2019-05-16 15:41:52 +02:00
Ghostkeeper
8c5f871185
Also omit support meshes from used extruders list
...
Their own extruder doesn't get used necessarily, because these meshes are then printed using the support extruder.
Contributes to issue CURA-6440.
2019-04-04 16:35:48 +02:00
Lipu Fei
8da1f8fa7d
Exclude support blockers in used extruders
...
CURA-6440
2019-04-02 14:16:57 +02:00
Ghostkeeper
1d25f52df6
Merge branch '4.0'
2019-03-06 15:23:55 +01:00
Jaime van Kessel
91cceea6e0
Fix the situation where an upgraded single extrusion machine and loading project caused issues
...
If the upgraded single extrusion machine was never activated, it would not have it's extruders set.
CURA-6252
2019-02-28 16:17:34 +01:00
Remco Burema
f1b6e527be
Rectified wrong placement of brackets causing logic change. [CURA-5864]
2019-02-14 14:55:12 +01:00
Remco Burema
a601e0878c
Explicitly also check for Raft when checking for prime-tower=brim. [CURA-5864]
2019-02-13 15:46:39 +01:00
Lipu Fei
173f125d3e
Fix merge conflicts
2019-01-24 14:55:29 +01:00
Jaime van Kessel
e8febaff59
Remove code duplication
2019-01-02 09:23:20 +01:00
Ghostkeeper
42058a2e8f
Revert "Prevent some unneeded calling of signals"
...
This reverts commit 85f10e7c4f9bc48afd2fe43903e565b128e03189.
The second time you start Cura, it won't slice due to the number of extruders being wrong.
2018-12-24 09:37:17 +01:00
Remco Burema
f62e8b4bb2
Create 'brim for prime tower only' option (see also backend PR). [CURA-5864]
2018-12-21 17:38:30 +01:00
Jaime van Kessel
85f10e7c4f
Prevent some unneeded calling of signals
2018-12-21 16:57:52 +01:00
Jaime van Kessel
1436301d78
Ensure setActiveExtruderIndex only gets called once when switching machines
...
CURA-6016
2018-12-10 16:20:00 +01:00
Ghostkeeper
4e2f51e7e8
Use public activeExtruderIndex rather than internal _activeExtruderIndex
...
So that this getter still does what it needs to do if we ever decide to add side-effects.
Contributes to issue CURA-5876.
2018-11-30 11:13:04 +01:00
Lipu Fei
0e1e8d269a
Fix the extra setNextStack()
2018-10-25 13:40:34 +02:00
Lipu Fei
5e8dba5266
Remove some duplicate addExtruder() and setNextStack() calls
2018-10-25 11:42:47 +02:00
Lipu Fei
7d7de32dbd
Add ExtruderStack to GlobalStack in single extrusion machine fix
2018-10-03 16:53:07 +02:00
Lipu Fei
18cb21186c
Merge remote-tracking branch 'origin/master' into WIP_kill_extruder_manager
2018-10-03 15:45:18 +02:00
Diego Prado Gesto
c0c66649b8
Merge branch '3.5'
2018-10-02 20:27:18 +02:00
Lipu Fei
f69005fef9
Rename to CuraFormulaFunctions
...
to avoid confusion with "SettingFunction" in Uranium.
2018-10-01 11:24:34 +02:00
Lipu Fei
3c8368827b
Remove unused functions in ExtruderManager
2018-09-26 17:04:15 +02:00
Lipu Fei
7a681a2ae4
Move Cura custom setting functions to a separate file
2018-09-26 16:54:00 +02:00
Lipu Fei
91bcfb9445
Take in account extruders that haven't been loaded yet
...
CURA-5751
2018-09-25 15:29:31 +02:00
Lipu Fei
3b62284276
Merge remote-tracking branch 'origin/3.5'
2018-09-18 16:15:55 +02:00
Lipu Fei
ddc5d983a1
Fix single extrusion machines without an ExtruderStack
...
CURA-5736
2018-09-18 13:35:25 +02:00
Ghostkeeper
e9ac0e5564
Merge branch '3.5'
2018-09-14 12:41:35 +02:00