mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-12 11:37:42 +00:00
docs: add BambuStudio reference path to spec
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
**Date:** 2026-07-07
|
**Date:** 2026-07-07
|
||||||
**Source:** Port from BambuStudio `AMSDryControl` feature
|
**Source:** Port from BambuStudio `AMSDryControl` feature
|
||||||
|
**Reference:** `D:\projects\BambuStudio` — match its behavior as much as possible; when in doubt, check the BambuStudio source
|
||||||
**Branch:** `dev/ams-heat`
|
**Branch:** `dev/ams-heat`
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
@@ -75,9 +76,9 @@ Additionally, OrcaSlicer already has `ams_drying.svg` and `ams_is_drying.svg`.
|
|||||||
Promoted from `DevAms::AmsType` (currently local to the class) to a global enum in `DevDefs.h` so `DevFilamentDryingPreset` and `DevUtilBackend` can reference it without depending on `DevAms`. `DevAms::AmsType` is updated to be a typedef for `DevAmsType`, and all existing references to `DevAms::AmsType` remain valid (it's the same type):
|
Promoted from `DevAms::AmsType` (currently local to the class) to a global enum in `DevDefs.h` so `DevFilamentDryingPreset` and `DevUtilBackend` can reference it without depending on `DevAms`. `DevAms::AmsType` is updated to be a typedef for `DevAmsType`, and all existing references to `DevAms::AmsType` remain valid (it's the same type):
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
// DevDefs.h — global enum using OrcaSlicer's existing names (same integer values as before)
|
// DevDefs.h — global enum matching BambuStudio's DevAmsType naming
|
||||||
enum DevAmsType : int {
|
enum DevAmsType : int {
|
||||||
DUMMY = 0,
|
EXT_SPOOL = 0,
|
||||||
AMS = 1,
|
AMS = 1,
|
||||||
AMS_LITE = 2,
|
AMS_LITE = 2,
|
||||||
N3F = 3, // AMS 2 Pro
|
N3F = 3, // AMS 2 Pro
|
||||||
@@ -86,7 +87,8 @@ enum DevAmsType : int {
|
|||||||
|
|
||||||
// DevFilaSystem.h — DevAms class updated:
|
// DevFilaSystem.h — DevAms class updated:
|
||||||
// Replace "enum AmsType { DUMMY=0, AMS=1, AMS_LITE=2, N3F=3, N3S=4 }"
|
// Replace "enum AmsType { DUMMY=0, AMS=1, AMS_LITE=2, N3F=3, N3S=4 }"
|
||||||
// with "using AmsType = DevAmsType;" (keeps existing code compiling)
|
// with "using AmsType = DevAmsType;"
|
||||||
|
// Existing references to DevAms::DUMMY become DevAms::EXT_SPOOL (same value, different name).
|
||||||
```
|
```
|
||||||
|
|
||||||
### `DevAms` class additions (in `DevFilaSystem.h`)
|
### `DevAms` class additions (in `DevFilaSystem.h`)
|
||||||
|
|||||||
Reference in New Issue
Block a user