mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-20 23:31:13 -06:00
Refactored Print::validate() method to not throw an exception, but
to return a string with an error message instead. This was necessary to avoid a hang-up on some Strawberry Perl distributions, when a perl "croak" function is called after a C++ exception is caught.
This commit is contained in:
parent
dfa3f8d597
commit
bfb336df0c
4 changed files with 24 additions and 23 deletions
|
@ -219,14 +219,8 @@ _constant()
|
|||
%code%{ RETVAL = THIS->apply_config(*config); %};
|
||||
bool has_infinite_skirt();
|
||||
bool has_skirt();
|
||||
void validate()
|
||||
%code%{
|
||||
try {
|
||||
THIS->validate();
|
||||
} catch (PrintValidationException &e) {
|
||||
croak("%s\n", e.what());
|
||||
}
|
||||
%};
|
||||
std::string _validate()
|
||||
%code%{ RETVAL = THIS->validate(); %};
|
||||
Clone<BoundingBox> bounding_box();
|
||||
Clone<BoundingBox> total_bounding_box();
|
||||
double skirt_first_layer_height();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue