Commit Graph

13 Commits

Author SHA1 Message Date
Ian Bassi
3db37d004a Fix + Support 'Default' filament option (index 0) (#13887)
* Support 'Default' filament option (index 0)

Treat filament index 0 as the new "Default" (use active object/part filament) instead of using 1. Update config defaults and tooltips for wall/sparse/solid infill filament options (min/default -> 0, tooltip explains "Default"). Adjust normalization and propagation logic to respect explicit feature overrides and only apply base extruder when feature values are zero; only copy sparse->solid infill when sparse > 0. Introduce FeatureFilamentOverrideMask and clamp_feature_filament_to_valid to resolve and clamp feature filaments. Update UI lists and selection behavior to expose a "Default" entry and handle zero-based indices in PartPlate and Plater.

* enable_filament_for_features option

Co-Authored-By: LixNix <105106115+lixnix@users.noreply.github.com>

* \n

* Allow wipe_tower_filament to equal nozzle count

Relax the assertion in Print::extruders to permit wipe_tower_filament == config().nozzle_diameter.size(). The configuration value is 1-based and the code subtracts 1 when pushing the extruder index, so equality should be valid and selecting the last nozzle should not trigger an assertion.

* Revert "Allow wipe_tower_filament to equal nozzle count"

This reverts commit 2c97657432.

* Revert "enable_filament_for_features option"

This reverts commit 01c13baedd.

* Migrate legacy feature filament defaults

Add migration logic to convert legacy feature filament selections from 1 to 0 for older 3mf files. Introduces a local migrate_legacy_feature_filament_defaults lambda in src/OrcaSlicer.cpp and src/slic3r/GUI/Plater.cpp that scans keys (wall_filament, sparse_infill_filament, solid_infill_filament, support_filament, support_interface_filament) on configs/objects/volumes, updates values, counts conversions and logs the result. Also adds a Semver check for "2.4.0-dev" in OrcaSlicer to trigger the migration for files older than that version. This preserves expected default filament selections when loading older project files.

* Update OrcaSlicer.cpp

* Extract migration helper to ConfigMigrations

Centralize legacy feature-filament default migration by moving the duplicated lambda into ConfigMigrations::migrate_legacy_feature_filament_defaults (src/libslic3r/Config.cpp) and declaring it in Config.hpp. Update OrcaSlicer.cpp and slic3r/GUI/Plater.cpp to call the new function instead of inline lambdas. The helper converts specific feature filament keys (wall_filament, sparse_infill_filament, solid_infill_filament, support_filament, support_interface_filament) from int 1 to 0 and returns the count of conversions to avoid duplicated migration logic.

* Remove DynamicFilamentList1Based and consolidate lists

Delete the specialized DynamicFilamentList1Based struct and its global instance. Update Choice registrations to use the single dynamic_filament_list for wall, sparse_infill and solid_infill filaments, and remove the extra update call for the removed instance. This consolidates filament choice handling and removes duplicated logic in Plater.cpp.

* move it

* fix objects

* Update Config.hpp

* Update profiles
2026-05-29 10:54:26 +08:00
Ian Bassi
16727644bb Reduce size by Json Fromatting (#13163)
Reduce the size of current and new JSONs by standardising them with 1 tab indentation instead of 4 spaces.
This effectively reduces the size by almost 20 MB.

| Current | New |
|---|---|
| 85.2 Mib | 67 Mib |

Used [JQ](https://jqlang.org/) `--tab` to automatically format every current JSON.

> [!NOTE]
> Some profiles had the arrays on the same line, but those created by Orca were in the standard format (each object below the previous one). In some cases, this increases the number of tabs due to the new lines, but the increase is negligible, and this way both the base profiles and those created by Orca maintain the same style.
2026-04-15 22:58:12 +08:00
SoftFever
f4224e9780 tidy up and bump profile version (#12889)
* tidy up and bump profile version

* fix error

* tidy up

* fix

* tide up more

* fix errors

* fix more errors
2026-03-23 01:17:34 +08:00
SoftFever
4f50fdc94e Fixed many profile issues and cleaned up some messes. (#10686) 2025-09-11 17:50:53 +08:00
SoftFever
0459c28596 Tweak default parameters
1.  Change default ensure_vertical_shell_thickness value back to ensure_all as suggested by @igiannakas
2.  Change default sparse_infill_pattern vaule to ipCrossHatch
2024-05-29 23:07:29 +08:00
SoftFever
f13dc1fdcd bump profiles version to 2.1, change most profiles' top_surface_pattern to monotonicline as default pattern 2024-05-22 22:54:56 +08:00
SoftFever
565732a027 remove print_flow_ratio from profiles and hide it from process setting. It should be only displayed for parts 2023-11-16 19:07:40 +08:00
SoftFever
5213fbfa86 Support initial_tool variable for filename format 2023-11-13 22:25:32 +08:00
SoftFever
e624632969 semm 2023-09-09 13:19:59 +08:00
Carlos Caruncho
6f3045b3e5 Updated Kingroon profiles (#1867)
* Update Kingroon profiles
2023-09-05 20:00:16 +08:00
SoftFever
58e24dd270 Revert "Kingroon profiles improves (#1599)"
This reverts commit e78a6d964b.
2023-07-31 18:52:49 +08:00
Carlos Caruncho
e78a6d964b Kingroon profiles improves (#1599)
* Update OrcaSlicer_es.po

* Update OrcaSlicer_es.po

More strings!

* Update OrcaSlicer_es.po

* modified:   bbl/i18n/es/OrcaSlicer_es.po

* Update Orcaslicer spanish

* Merge

* Corregidos duplicados

* modified:   bbl/i18n/es/OrcaSlicer_es.po

* modified:   bbl/i18n/es/OrcaSlicer_es.po

* modified:   bbl/i18n/es/OrcaSlicer_es.po

* modified:   bbl/i18n/es/OrcaSlicer_es.po

* modified:   bbl/i18n/es/OrcaSlicer_es.po
	modified:   bbl/i18n/es/OrcaSlicer_es.mo

* modified:   bbl/i18n/es/OrcaSlicer_es.mo

* Update Orca es

* FIX:orcaslicer_es.po  some strings

* modified:   bbl/i18n/es/OrcaSlicer_es.po

* modified:   bbl/i18n/es/OrcaSlicer_es.po

* modified:   bbl/i18n/es/OrcaSlicer_es.po
	modified:   resources/i18n/es/OrcaSlicer.mo

* Update text.js

Added es_ES to text.js (spanish strings)

* Kingroon profiles added

Added Kp3s and kp5l printers

* Update OrcaSlicer_es.po

CAMBIOS EN CUARTEL

* Update OrcaSlicer_es.po

* [FIX] Fixed some spanish strings

Improved translation

* More spanish string fixes

More fixes

* Fix More Spanish Strings

* add kingoon profiles

* Last mo update

* Fix KP3S PRO S1 profile

* Kingroon printers fixes

* Update OrcaSlicer.mo

* Added plate bed

* [FIX] Some Kingroon profiles fixes

* Kingroon profile improves

Brong start gcode

* Kingroon profile improves

Deleted some profiles

* Some fixes

* More fixes
2023-07-30 13:58:43 +08:00
Carlos Caruncho
cccc857f6f Fixed spanish translation and kingroon profiles added (#1572)
* Update OrcaSlicer_es.po

* Update OrcaSlicer_es.po

More strings!

* Update OrcaSlicer_es.po

* modified:   bbl/i18n/es/OrcaSlicer_es.po

* Update Orcaslicer spanish

* Merge

* Corregidos duplicados

* modified:   bbl/i18n/es/OrcaSlicer_es.po

* modified:   bbl/i18n/es/OrcaSlicer_es.po

* modified:   bbl/i18n/es/OrcaSlicer_es.po

* modified:   bbl/i18n/es/OrcaSlicer_es.po

* modified:   bbl/i18n/es/OrcaSlicer_es.po
	modified:   bbl/i18n/es/OrcaSlicer_es.mo

* modified:   bbl/i18n/es/OrcaSlicer_es.mo

* Update Orca es

* FIX:orcaslicer_es.po  some strings

* modified:   bbl/i18n/es/OrcaSlicer_es.po

* modified:   bbl/i18n/es/OrcaSlicer_es.po

* modified:   bbl/i18n/es/OrcaSlicer_es.po
	modified:   resources/i18n/es/OrcaSlicer.mo

* Update text.js

Added es_ES to text.js (spanish strings)

* Kingroon profiles added

Added Kp3s and kp5l printers

* Update OrcaSlicer_es.po

CAMBIOS EN CUARTEL

* Update OrcaSlicer_es.po

* [FIX] Fixed some spanish strings

Improved translation

* More spanish string fixes

More fixes

* Fix More Spanish Strings

* add kingoon profiles

* Last mo update

* Fix KP3S PRO S1 profile

* Kingroon printers fixes

* Update OrcaSlicer.mo

* Added plate bed
2023-07-23 12:03:53 +08:00