mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-21 15:51:10 -06:00
Reworked the Perl unit / integration tests to use the same Print
interface that the application is using. Old interface used just for the integration tests was removed.
This commit is contained in:
parent
8bf6e69851
commit
ac6969c992
12 changed files with 72 additions and 359 deletions
|
@ -70,6 +70,8 @@ _constant()
|
|||
Print();
|
||||
~Print();
|
||||
|
||||
Ref<Model> model()
|
||||
%code%{ RETVAL = const_cast<Model*>(&THIS->model()); %};
|
||||
Ref<StaticPrintConfig> config()
|
||||
%code%{ RETVAL = const_cast<GCodeConfig*>(static_cast<const GCodeConfig*>(&THIS->config())); %};
|
||||
Ref<PlaceholderParser> placeholder_parser()
|
||||
|
@ -140,8 +142,8 @@ _constant()
|
|||
}
|
||||
%};
|
||||
|
||||
bool apply_config_perl_tests_only(DynamicPrintConfig* config)
|
||||
%code%{ RETVAL = THIS->apply_config_perl_tests_only(*config); %};
|
||||
bool apply(Model *model, DynamicPrintConfig* config)
|
||||
%code%{ RETVAL = THIS->apply(*model, *config); %};
|
||||
bool has_infinite_skirt();
|
||||
std::vector<unsigned int> extruders() const;
|
||||
int validate() %code%{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue