75c72bc59b
https://github.com/prusa3d/Slic3r/issues/443 Change of the PlaceholderParser: All vector configuration values stored into the PlaceholderParser are expected to be addressed by the extruder ID, therefore if a vector configuration value is addressed without an index, a current extruder ID is used. Also a small fix of fan handling: The fan speed is set to zero at the start of the G-code if the cooling for the initial extruder is disabled.
24 lines
700 B
Plaintext
24 lines
700 B
Plaintext
%module{Slic3r::XS};
|
|
|
|
%{
|
|
#include <xsinit.h>
|
|
#include <vector>
|
|
#include "libslic3r/PlaceholderParser.hpp"
|
|
%}
|
|
|
|
%name{Slic3r::GCode::PlaceholderParser} class PlaceholderParser {
|
|
PlaceholderParser();
|
|
~PlaceholderParser();
|
|
Clone<PlaceholderParser> clone()
|
|
%code{% RETVAL = THIS; %};
|
|
|
|
void update_timestamp();
|
|
void apply_env_variables();
|
|
void apply_config(DynamicPrintConfig *config)
|
|
%code%{ THIS->apply_config(*config); %};
|
|
void set(std::string key, std::string value);
|
|
%name{set_multiple} void set(std::string key, std::vector<std::string> values);
|
|
std::string process(std::string str) const
|
|
%code%{ RETVAL = THIS->process(str, 0); %};
|
|
};
|