diff --git a/xs/xsp/Config.xsp b/xs/xsp/Config.xsp index 8d6a971bc..435dda5a2 100644 --- a/xs/xsp/Config.xsp +++ b/xs/xsp/Config.xsp @@ -8,8 +8,7 @@ %name{Slic3r::Config} class DynamicPrintConfig { DynamicPrintConfig(); ~DynamicPrintConfig(); - static DynamicPrintConfig* new_from_defaults(); - DynamicPrintConfig* DynamicPrintConfig::new_from_defaults() + static DynamicPrintConfig* new_from_defaults() %code{% RETVAL = DynamicPrintConfig::new_from_defaults_keys(FullPrintConfig::defaults().keys()); %}; static DynamicPrintConfig* new_from_defaults_keys(std::vector keys); DynamicPrintConfig* clone() %code{% RETVAL = new DynamicPrintConfig(*THIS); %};