49 Commits

Author SHA1 Message Date
Jaime van Kessel
dc944ff5e9
Also add wall_line_count when adding a infill mesh
CURA-7793
Fixes #8589
2020-11-03 16:06:10 +01:00
Nino van Hooff
89f0970a88 Remove trailing whitespace from Python files 2020-05-29 14:30:33 +02:00
Nino van Hooff
a4fe3d7685 Convert doxygen to rst for POS, MonitorStage, PostProcessing 2020-05-08 16:28:07 +02:00
Nino van Hooff
ce12827879 Fix infill mesh defaults not visible when changing per object settings
The problem: When infill mesh is set, wall_thickness and
top_bottom_thickness are added to the settings. Then these settings are
set to visible on the visibility_handler.
It appears however, that the visibility_handler considers all added
settings to be visible. It thus concludes that no UI update is necessary
because the settings are already added.
2020-03-12 13:25:29 +01:00
Nino van Hooff
c8c4fe65cf Fix two if statements which caused POS settings to be unselectable 2020-03-06 11:00:56 +01:00
Ghostkeeper
3b235d5536
Make settings visible too after adding them
Contributes to issue CURA-7211.
2020-02-13 13:08:32 +01:00
Tim Kuipers
9c2fd1c9d4 automatically add shell thickness to stack and set to zero for infill meshes
and remove when unmodified and we change to another mesh type
2020-01-03 15:57:20 +01:00
Nino van Hooff
dbb9e55bc8 Fix MyPy warning in PerObjectSettingsTool
CURA-6683
2019-09-16 15:05:02 +02:00
Nino van Hooff
184a72f7ab Bind current_mesh_type to UM.ActiveTool.properties.getValue("MeshType")
CURA-6683
2019-09-13 13:26:00 +02:00
Nino van Hooff
0ba1bfbe4f Enable Per Object Settings when extruder is in Recommended mode 2019-09-10 13:37:05 +02:00
Diego Prado Gesto
43657010ba CURA-5164 The Preferences is not a singleton class anymore since in some point
several instances need to be created.

- In the ThreeMFWorkspaceReader we need to create some temporal
instances of Preferences that makes it not singleton anymore.

- The current preferences are kept in the Application class and so all
the calls to the preferences are changed to get the preferences from
Application.

- The method getInstance in Preferences is kept as deprecated since some
external plugins.
2018-05-11 08:50:42 +02:00
Aleksei S
6bb42da056 Removed related commits to Settins per Object validation and
added short validation in StartScliceJob
CURA-4972
2018-03-06 15:40:26 +01:00
Ian Paschal
8d5a643c9b Removed print() statement 2018-03-06 10:51:39 +01:00
Ian Paschal
1f403f815d CURA-4972 Moved validation to SettingOverrideDecorator.py
**The diagnosis:**
The issue arrises from the fact that while the original object is subscribed to be validated, that subscription is only created by setting it as a settings override object. A clone of that object, while still a settings-override object, never gets subscribed because it's not explicitly set with the tool.

**The solution (?):**
I moved all the validation stuff over to SettingOverrideDecorator.py, and use its onSettingChanged() function to trigger the validation. Unfortunately, I can't use the timer because of some limitation with QTTimer and threads. So it's _a bit laggy in some places, and I'd be open to tips about how to fix this. It does work reliably though.
2018-03-02 17:05:58 +01:00
Aleksei S
ed7dec0cae Fix: per model settings validation
CURA-4972
2018-02-23 13:05:29 +01:00
fieldOfView
1924946b59 Merge branch 'master' into feature_mesh_types
# Conflicts:
#	plugins/SolidView/SolidView.py
2017-11-18 11:28:15 +01:00
fieldOfView
a1320939e8 Update mesh type dropdown when to reflect the selected object 2017-11-09 21:42:10 +01:00
fieldOfView
316ae49b0b Fix setting mesh type through Per Model Settings combobox 2017-11-09 18:25:09 +01:00
ChrisTerBeke
a7383b42d5 Always use extruder stack when adding settings per object - CURA-4482 2017-10-31 16:04:06 +01:00
Mark
9a193ad5c5 Changing AGPLv3 to LGPLv3 2017-09-28 13:00:43 +02:00
Arjen Hiemstra
0fad973181 Never enable the per-object tool when in simple mode
Contributes to CURA-3577
2017-04-25 16:12:36 +02:00
Jaime van Kessel
e67f5bdd44 PerObject tool is now disabled when group or multiple objects are selected
CURA-2287
2016-11-03 15:33:18 +01:00
Jack Ha
3f6877d2ec Keep per object extruder when switching machines. CURA-2533 2016-10-12 13:58:09 +02:00
Jaime van Kessel
cf06a918a8 Per object tool now also triggers recenter
CURA-2401
2016-09-20 13:12:27 +02:00
fieldOfView
4de78db87a Revert "Remove "infill mesh" as a standard visible setting"
This reverts commit 46942d7cf23e32dcdf5dbf00440aa781061f4f65.

It was not my decision to make
2016-09-08 14:04:58 +02:00
fieldOfView
dc282dc263 Fix Per Model Settings crash when switching to multiextrusion printer
CURA-2228
2016-09-07 16:51:03 +02:00
Jaime van Kessel
b5aa7c3545 Remove the extruder id from settingoverride decorator if the machine does not have multi extrusion
CURA-1876 & CURA-1768
2016-07-12 10:34:58 +02:00
fieldOfView
c36af13daf Fix PerObjectSettings, which were broken due to the material editing merge
CURA-342
2016-07-07 18:25:20 +02:00
fieldOfView
08411e943c Reenable Per Object Settings tool in simple mode if the current printer has multiextrusion
and tweak Per Object Settings panel size

CURA-333
2016-06-22 18:46:24 +02:00
fieldOfView
213e20bf4b Enable per object settings for objects inside a group
CURA-1054
2016-06-13 16:55:10 +02:00
Ghostkeeper
d89c9d8827
Make getSelectedActiveExtruder return its misbegotten gains
It was getting a value from the decorator, then keeping it to itself all greedy like. It must return what it found.

Contributes to issue CURA-340.
2016-06-10 17:04:26 +02:00
Ghostkeeper
f5f711b7dc
On extruder switch create OverrideDecorator if needed
The SettingOverrideDecorator is only applied if the node has a per-object setting. Now it also creates a decorator also if you've ever switched the extruder, which was needed because the decorator contains the information which extruder to print with.

Contributes to issue CURA-340.
2016-06-09 19:06:17 +02:00
Ghostkeeper
bd76c3e30f
Add drop-down in per-object settings to select extruder
Actually selecting an extruder has no effect because there are dragons in that area and I need better armour with bonus damage against bugs before I venture in there.

Contributes to issues CURA-340 and CURA-1278.
2016-06-09 15:47:06 +02:00
Jaime van Kessel
1ae69b25fa Added documentation 2016-06-02 16:07:09 +02:00
Jaime van Kessel
c994cb6bef Slicing no longer occurs when a perObject setting is in error state
CURA-1288
2016-06-02 14:19:39 +02:00
Jaime van Kessel
ca218d7a1f Removed too generic exception handling
CURA-1278
2016-06-02 13:52:11 +02:00
Jaime van Kessel
1af6e63b35 Removed unused model 2016-06-02 13:41:46 +02:00
Jaime van Kessel
89c1136d7f Per object settings can now be added & changed
CURA-1278
2016-05-27 15:28:54 +02:00
Thomas-Karl Pietrowski
429e54bc8a Removing unused import 2016-03-14 17:15:57 +01:00
fieldOfView
51ad894711 Properly disable Per Object Settings toolbutton on first start
On an empty profile, the cura/active_mode preference is not set so the code disabling the button was not called.

Fixes CURA-901
2016-03-01 10:34:00 +01:00
fieldOfView
bbd77ee998 Revert "Fix Per Object Settings toolbutton enabled state on startup"
This reverts commit 8d7df76aa19009192247d5fb14babbdf9d7c6202.

Contributes to CURA-901
2016-02-25 16:31:53 +01:00
fieldOfView
8d7df76aa1 Fix Per Object Settings toolbutton enabled state on startup
Contributes to CURA-901
2016-02-25 09:40:12 +01:00
fieldOfView
de28561152 Remove Profiles from Per Object Settings panel
Also disables Per Object Settings tool button when sidebar is in simple mode.

Contributes to CURA-901
2016-02-24 00:14:54 +01:00
Jaime van Kessel
ee1c16d1fc Grouped objects now correctly get per-object settings
Instead of the first object, the group gets the settings.
2016-02-23 11:27:59 +01:00
Ghostkeeper
72125d84bf Fix problem with casting to QVariant
This is a magical fix that Nallath and I found for a problem that shouldn't exist in the first place and sometimes doesn't exist at all and in the same time is a superposition of existing and not existing and it's all very complicated and an extremely weird hack. Casting this object to itself properly makes it castable to QVariant.

Contributes to issue CURA-458.
2016-02-08 15:29:15 +01:00
Ghostkeeper
a658140997 Remove more remnants of print sequence message
I found this other place that was helping to display the message that warns that print sequcence is set per-object. Since the latter is no longer possible, this message shouldn't be displayed any more.

Contributes to issue CURA-458.
2016-02-04 12:14:59 +01:00
fieldOfView
5fe1de2153 Add warning to PerObjectSettingsPanel when Print Sequence is set to All at Once 2015-12-09 15:05:39 +01:00
fieldOfView
2ebeb72fac Rework Per Object Settings selection mechanism 2015-12-03 12:09:32 +01:00
Ghostkeeper
1bda2ff220 Move PerObjectSettings from Uranium to Cura
This tool is deemed Cura-specific, so it is moved to Cura. This prevents it from being included in other Uranium applications.
2015-10-01 15:41:36 +02:00