mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 13:02:39 -07:00
Refactoring of StaticPrintConfig & derived classes:
1) Using boost::preprocessor to reduce code duplicities when defining new configuration values. 2) Implemented static hash() and operator== on StaticPrintConfig derived classes to support hash tables of instances thereof.
This commit is contained in:
@@ -108,7 +108,7 @@
|
||||
std::string get_extrusion_axis()
|
||||
%code{%
|
||||
if (GCodeConfig* config = dynamic_cast<GCodeConfig*>(THIS)) {
|
||||
RETVAL = config->get_extrusion_axis();
|
||||
RETVAL = get_extrusion_axis(*config);
|
||||
} else {
|
||||
CONFESS("This StaticConfig object does not provide get_extrusion_axis()");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user