Commit graph

7797 commits

Author SHA1 Message Date
HellAholic
627e7f3c99
Merge pull request #20840 from Ultimaker/CURA-12660_painting-UI-improvements
Cura 12660 painting UI improvements
2025-08-21 09:58:53 +02:00
HellAholic
4059744ce7
Merge pull request #20823 from Ultimaker/CURA-12615_early_error_check
Trigger machine error checking during startup. Otherwise slicing will keep failing until selected printer is changed.
2025-08-11 12:55:05 +02:00
Erwan MATHIEU
e69a436942 Fix sometimes wrongly displayed view
Some checks are pending
conan-package / conan-package (push) Waiting to run
unit-test / Run unit tests (push) Waiting to run
CURA-12660
This required a refactoring of the management of the active view. The previous behavior was that anyone could set the active view, depending on certain conditions. But now we also have a view that is set by a tool, so sometimes the actually set view would be incorrect. Now each Stage requests an active view, and each tool CAN also request an active view. Then the Controller decides which view should actually be active depending on the active stage and tool.
2025-08-06 16:15:05 +02:00
Erwan MATHIEU
63843b59c4 Merge remote-tracking branch 'origin/main' into CURA-12660_painting-UI-improvements
Some checks failed
conan-package-resources / conan-package (push) Has been cancelled
conan-package / conan-package (push) Has been cancelled
printer-linter-format / Printer linter auto format (push) Has been cancelled
unit-test / Run unit tests (push) Has been cancelled
conan-package-resources / signal-curator (push) Has been cancelled
2025-08-04 11:55:26 +02:00
Erwan MATHIEU
bef7bac6a1
Merge branch 'main' into CURA-12528_unwrap_uvs 2025-08-04 11:29:45 +02:00
Erwan MATHIEU
a7366c86f9
Merge branch 'main' into CURA-12660_painting-UI-improvements 2025-08-04 11:29:06 +02:00
Erwan MATHIEU
ea488f0202 Fix wrongly displayed error message
CURA-12660
2025-08-01 14:23:02 +02:00
Erwan MATHIEU
ab58dec5d1 Fix unability to paint with visible message box
CURA-12660
When a message box is displayed, some offscreen rendering passes (face selection) render an unpredictable result and we are unable to start painting.
This went through a refactoring of the rendering passes. Since doing the offscreen rendering outside the Qt rendering loop caused some troubles, we now use the rendering passes only inside the Qt rendering loop, so that they work properly. Tools also have the ability to indicate which extra passes they require, so that we don't run all the passes when they are not required.
Since this issue also concerns the support blockers placement and rotation by face selection, they have been updated so that they now also always work.
The face selection mechanism using the Selection class was partially working and used only by the rotation, so now it has been deprecated in favor of the new mechanism.
2025-08-01 13:10:03 +02:00
Erwan MATHIEU
da0509cda3 Fix painting through an invisible object
CURA-12660
2025-07-30 15:58:26 +02:00
Timur Seitosmanov
5040e7f230 Trigger machine error checking during startup. Otherwise slicing will keep failing until selected printer is changed. 2025-07-30 15:21:17 +02:00
Remco Burema
8af8283d2c Use newly exposed 'reloadNodes' so we can use Uraniums version of that.
This caused issues where the code deleted in this ticket was almost the same as in Uranium, except it was slightly buggy (but it also did slightly more, hence the new 'on_done' parametrer).

part of CURA-12630
2025-07-30 14:02:56 +02:00
Erwan MATHIEU
3fa0dad1bf
Merge branch 'main' into CURA-12528_unwrap_uvs
Some checks failed
conan-package-resources / conan-package (push) Has been cancelled
conan-package / conan-package (push) Has been cancelled
printer-linter-format / Printer linter auto format (push) Has been cancelled
unit-test / Run unit tests (push) Has been cancelled
conan-package-resources / signal-curator (push) Has been cancelled
2025-07-21 11:37:58 +02:00
HellAholic
249d5f5245
Merge pull request #20640 from Ultimaker/CURA-12543_painting_ux
Some checks failed
conan-package / conan-package (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
unit-test / Run unit tests (push) Has been cancelled
[CURA-12543] Painting UI
2025-07-17 12:07:12 +02:00
Erwan MATHIEU
55ee4ec6e1 Calculate and apply UV coordinates
Some checks failed
conan-package-resources / conan-package (push) Has been cancelled
conan-package / conan-package (push) Has been cancelled
printer-linter-format / Printer linter auto format (push) Has been cancelled
unit-test / Run unit tests (push) Has been cancelled
conan-package-resources / signal-curator (push) Has been cancelled
CURA-12528
2025-07-08 15:47:46 +02:00
Erwan MATHIEU
4aea5807cf Fix SliceableObjectDecorator deep copy
Some checks failed
conan-package / conan-package (push) Has been cancelled
unit-test / Run unit tests (push) Has been cancelled
CURA-12543
2025-07-04 17:25:49 +02:00
HellAholic
4a18b2e0af
Merge branch 'main' into CURA-12557_handle-deactivated-things 2025-06-30 12:50:15 +02:00
Erwan MATHIEU
ae2a189c14 Replace "cloudActive" property by generic "active"
CURA-12557
2025-06-30 09:53:54 +02:00
Erwan MATHIEU
a1d1dc2ea0 Merge remote-tracking branch 'origin/main' into CURA-12543_painting_ux
Some checks failed
conan-package-resources / conan-package (push) Has been cancelled
conan-package / conan-package (push) Has been cancelled
printer-linter-format / Printer linter auto format (push) Has been cancelled
unit-test / Run unit tests (push) Has been cancelled
conan-package-resources / signal-curator (push) Has been cancelled
2025-06-24 13:37:23 +02:00
Erwan MATHIEU
be14fc7dd6 Send texture data to the engine
CURA-12574
2025-06-24 13:36:49 +02:00
HellAholic
397c43545c
Merge branch 'main' into CURA-12557_handle-deactivated-things
Some checks failed
conan-package / conan-package (push) Waiting to run
unit-test / Run unit tests (push) Waiting to run
conan-package-resources / conan-package (push) Has been cancelled
printer-linter-format / Printer linter auto format (push) Has been cancelled
conan-package-resources / signal-curator (push) Has been cancelled
2025-06-19 13:57:53 +02:00
Erwan MATHIEU
4caba52f05 Basically working multipurpose painting
CURA-12566
2025-06-18 16:00:47 +02:00
Erwan MATHIEU
4ff78c893b
Merge branch 'main' into CURA-12544_saving-and-loading-painted-files-in-Cura
Some checks failed
conan-package / conan-package (push) Waiting to run
unit-test / Run unit tests (push) Waiting to run
conan-package-resources / conan-package (push) Has been cancelled
printer-linter-format / Printer linter auto format (push) Has been cancelled
conan-package-resources / signal-curator (push) Has been cancelled
2025-06-16 15:43:22 +02:00
HellAholic
b7ce5cc07f
Merge branch 'main' into CURA-11978_retract-and-unretract-in-a-travel
Some checks failed
conan-package-resources / conan-package (push) Has been cancelled
conan-package / conan-package (push) Has been cancelled
printer-linter-format / Printer linter auto format (push) Has been cancelled
unit-test / Run unit tests (push) Has been cancelled
conan-package-resources / signal-curator (push) Has been cancelled
2025-06-13 17:10:00 +02:00
Erwan MATHIEU
d0947c5fb2 Include new print feature type
CURA-11978
2025-06-13 16:17:58 +02:00
Erwan MATHIEU
2e9999ed2d Display the printer activation status
CURA-12557
2025-06-11 13:51:45 +02:00
Erwan MATHIEU
5a4b5bf119 Allow properly duplicating painted models
CURA-12544
2025-06-03 15:59:44 +02:00
Erwan MATHIEU
57f811af88 Load painted texture from 3MF file
CURA-12544
2025-06-03 15:59:02 +02:00
Erwan MATHIEU
f0764134cc Store painted texture to 3MF file
Some checks are pending
conan-package / conan-package (push) Waiting to run
unit-test / Run unit tests (push) Waiting to run
CURA-12544
Also allows having multiple texture for multiple models while painting
2025-06-03 13:27:57 +02:00
Erwan MATHIEU
b298fa6b39 Merge remote-tracking branch 'origin/main' into CURA-12544_saving-and-loading-painted-files-in-Cura 2025-05-28 09:12:53 +02:00
Erwan MATHIEU
1003d750b9
Merge branch 'main' into CURA-11978_retract-and-unretract-in-a-travel
Some checks failed
conan-package-resources / conan-package (push) Has been cancelled
conan-package / conan-package (push) Has been cancelled
printer-linter-format / Printer linter auto format (push) Has been cancelled
unit-test / Run unit tests (push) Has been cancelled
conan-package-resources / signal-curator (push) Has been cancelled
2025-05-27 08:51:07 +02:00
Erwan MATHIEU
86777ac666 Add new travel types and display z-hops
CURA-11978
2025-05-26 11:52:53 +02:00
Remco Burema
b0f175bd5a Add missing error-handling.
There was error handling for the url-request, but not for handling the subsequent resolution.
2025-05-13 08:29:30 +02:00
Erwan MATHIEU
d2e625edb3 Export project settings into BambuLab 3MF
CURA-12101
The printer parses the machine_start_gcode to allow selecting the filaments mapping at start time, without it the user has to set the filaments in fixed order. This is probably a security to ensure the proper filament is loaded at start.
2025-04-29 11:28:56 +02:00
Remco Burema
3e25b4ff9a Merge remote-tracking branch 'origin/main' into CURA-12099_export-and-import-to-bambu-3mf 2025-04-29 09:59:16 +02:00
Remco Burema
9b10467f3e Probably 'open as model' should not apply if the 3mf isn't a project file.
This would cause the 3MF projects from other vendors, which isn't a 'project' to us in the sense that it isn't a Cura project, to have their models 'arranged', unless the file was opened via 'recent files', in which case the open mode was set to always ask instead.

done as part of CURA-12099
2025-04-23 16:22:32 +02:00
Erwan MATHIEU
c28ab219a0 Fix possibly wrong returned initial extruder
CURA-12099
2025-04-17 13:25:24 +02:00
Erwan MATHIEU
f69d80f6a0 Allow selecting material mapping on printer
CURA-12099
2025-04-16 15:08:58 +02:00
Remco Burema
14bf34d96a Adjust code to review comments.
- Use delete-on-close instead.
- Prevent infinite loops.

part of CURA-12156
2025-04-15 21:08:33 +02:00
Remco Burema
6458c17de5 Save 'pluginless' bakcup correctly.
- Fix: Save the tempfile to the archive under the 'original' name (it is a rewrite of) instead of saving it to the archive under it's own name, which skipped the original file completely in a sense (the info was there, but as a tempfile).
- Fix: Also make sure the correct folders where ignored, as reinstall paths where the complete path, not the basename.

part of CURA-12156
2025-04-02 13:09:21 +02:00
Remco Burema
a50fa29a0f Merge remote-tracking branch 'origin/main' into CURA-12156_dont_zip_downloadable_plugins 2025-03-27 14:17:59 +01:00
HellAholic
79dfb7bd23
Merge branch '5.10' into CURA-12458_security-fixes-that-came-in-via-the-inbox 2025-03-19 11:11:31 +01:00
Erwan MATHIEU
67d4afb97e Use HSTS for local OAuth2 callback server
CURA-12458
This prevents possible man-in-the-middle attacks from within the user PC. Not very likely, but still a good practice.
2025-03-14 12:00:24 +01:00
Erwan MATHIEU
c4dd7b304b Fix wrongly switching project name
CURA-12403
2025-03-12 12:03:20 +01:00
Erwan MATHIEU
a4a35ba485 Fix overlapping objects after auto-arrange
CURA-12453
* Use DONT_ALIGN alignment, otherwise all the transforms get re-centered, including the ones of the fixed objects
* Remove DONT_ALIGN strategy for starting point, which is a non-handled case in the inner library
2025-03-10 13:46:31 +01:00
Erwan MATHIEU
22d1d170dc Improve arrangement calculation
CURA-12169
1. Do not recalculate transformed polygons for each strategy.
2. Try all possible strategies, but only once. This seems to give the best results.
2025-03-06 12:54:39 +01:00
Erwan MATHIEU
01d03f7e21 Fix testing multiple arrange strategies
CURA-12169
Some items were still set from previous tryes, giving a final result that could have inconsistencies (e.g. objects over disallowed ares)
2025-03-06 10:59:55 +01:00
Erwan MATHIEU
e19f5ee330 Do not move objects if auto-arrange fails
CURA-12169
When doing an explicit auto-arrange that can not find a complete solution, it is better not to move the objects because they will probably end up in a weird position
2025-03-06 10:58:54 +01:00
Remco Burema
d167e3f28e Work in progress on pulling plugins out of the backups.
It's now in a state where it can actually upload ... something (that should work). Not tested the restore yet.

I did run into trouble with the max concurrent requests, which I had to up to [more than 4, now on 8] to get it to work -- I'm not sure if I'm just working around a bug here, or if that's expected behaviour.

part of CURA-12156
2025-02-27 16:52:27 +01:00
Remco Burema
74420ee57b Merge branch 'main' into CURA-12156_dont_zip_downloadable_plugins 2025-02-27 11:26:58 +01:00
Erwan MATHIEU
4c1a7ce9aa
Merge branch '5.10' into CURA-12406_fix_intent_fallback 2025-02-26 15:21:39 +01:00