mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
Check if cmake option is truthy rather than defined
This commit is contained in:
@@ -2933,7 +2933,7 @@ std::string GCode::placeholder_parser_process(const std::string &name, const std
|
|||||||
// Orca: Added CMake config option since debug is rarely used in current workflow.
|
// Orca: Added CMake config option since debug is rarely used in current workflow.
|
||||||
// Also changed from throwing error immediately to storing messages till slicing is completed
|
// Also changed from throwing error immediately to storing messages till slicing is completed
|
||||||
// to raise all errors at the same time.
|
// to raise all errors at the same time.
|
||||||
#if !defined(NDEBUG) || defined(ORCA_CHECK_GCODE_PLACEHOLDERS) // CHECK_CUSTOM_GCODE_PLACEHOLDERS
|
#if !defined(NDEBUG) || ORCA_CHECK_GCODE_PLACEHOLDERS // CHECK_CUSTOM_GCODE_PLACEHOLDERS
|
||||||
if (config_override) {
|
if (config_override) {
|
||||||
const auto& custom_gcode_placeholders = custom_gcode_specific_placeholders();
|
const auto& custom_gcode_placeholders = custom_gcode_specific_placeholders();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user