mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-31 00:52:51 +00:00
Bugfix: spiral vase was not working when extrusion axis was not E. #2350
This commit is contained in:
@@ -29,14 +29,7 @@ void
|
||||
GCodeWriter::apply_print_config(const PrintConfig &print_config)
|
||||
{
|
||||
this->config.apply(print_config, true);
|
||||
|
||||
if (FLAVOR_IS(gcfMach3)) {
|
||||
this->_extrusion_axis = "A";
|
||||
} else if (FLAVOR_IS(gcfNoExtrusion)) {
|
||||
this->_extrusion_axis = "";
|
||||
} else {
|
||||
this->_extrusion_axis = this->config.extrusion_axis;
|
||||
}
|
||||
this->_extrusion_axis = this->config.get_extrusion_axis();
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -372,6 +372,17 @@ class GCodeConfig : public virtual StaticPrintConfig
|
||||
|
||||
return NULL;
|
||||
};
|
||||
|
||||
std::string get_extrusion_axis() const
|
||||
{
|
||||
if (this->gcode_flavor.value == gcfMach3) {
|
||||
return "A";
|
||||
} else if (this->gcode_flavor.value == gcfNoExtrusion) {
|
||||
return "";
|
||||
} else {
|
||||
return this->extrusion_axis.value;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
class PrintConfig : public GCodeConfig
|
||||
|
||||
@@ -51,6 +51,7 @@
|
||||
%code{% THIS->apply(*other, true); %};
|
||||
std::vector<std::string> get_keys()
|
||||
%code{% THIS->keys(&RETVAL); %};
|
||||
std::string get_extrusion_axis();
|
||||
};
|
||||
|
||||
%name{Slic3r::Config::Print} class PrintConfig {
|
||||
@@ -71,6 +72,7 @@
|
||||
%code{% THIS->apply(*other, true); %};
|
||||
std::vector<std::string> get_keys()
|
||||
%code{% THIS->keys(&RETVAL); %};
|
||||
std::string get_extrusion_axis();
|
||||
};
|
||||
|
||||
%name{Slic3r::Config::PrintRegion} class PrintRegionConfig {
|
||||
@@ -141,6 +143,7 @@
|
||||
%code{% THIS->apply(*other, true); %};
|
||||
std::vector<std::string> get_keys()
|
||||
%code{% THIS->keys(&RETVAL); %};
|
||||
std::string get_extrusion_axis();
|
||||
};
|
||||
|
||||
%package{Slic3r::Config};
|
||||
|
||||
Reference in New Issue
Block a user