mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 15:37:30 -06:00
Partial Automation of getting Gcode placeholders
Included pre-generated files specific to Orca rather than PS provided files Original Commit: prusa3d/PrusaSlicer@55d5921 Co-authored-by: YuSanka <yusanka@gmail.com>
This commit is contained in:
parent
05e159037f
commit
6d19d6207a
14 changed files with 362 additions and 109 deletions
|
@ -2915,6 +2915,11 @@ void GCode::process_layers(
|
|||
|
||||
std::string GCode::placeholder_parser_process(const std::string &name, const std::string &templ, unsigned int current_extruder_id, const DynamicConfig *config_override)
|
||||
{
|
||||
#if GET_CUSTOM_GCODE_PLACEHOLDERS
|
||||
if (config_override &&
|
||||
g_code_placeholders_map.find(name) == g_code_placeholders_map.end())
|
||||
g_code_placeholders_map[name] = *config_override;
|
||||
#endif
|
||||
PlaceholderParserIntegration &ppi = m_placeholder_parser_integration;
|
||||
try {
|
||||
ppi.update_from_gcodewriter(m_writer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue