mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-23 21:18:26 +08:00
Trying to patch the Perl bindings.
This commit is contained in:
parent
aa0335a750
commit
7cdc61b67a
@ -139,7 +139,19 @@ _constant()
|
|||||||
%};
|
%};
|
||||||
|
|
||||||
bool apply(Model *model, DynamicPrintConfig* config)
|
bool apply(Model *model, DynamicPrintConfig* config)
|
||||||
%code%{ RETVAL = THIS->apply(*model, *config); %};
|
%code%{
|
||||||
|
// Touching every config as the Perl bindings does not correctly export ModelConfig,
|
||||||
|
// therefore the configs have often invalid timestamps.
|
||||||
|
model->config.touch();
|
||||||
|
for (auto obj : model->objects) {
|
||||||
|
obj->config.touch();
|
||||||
|
for (auto vol : obj->volumes)
|
||||||
|
vol->config.touch();
|
||||||
|
}
|
||||||
|
for (auto mat : model->materials)
|
||||||
|
mat->config.touch();
|
||||||
|
RETVAL = THIS->apply(*model, *config);
|
||||||
|
%};
|
||||||
bool has_infinite_skirt();
|
bool has_infinite_skirt();
|
||||||
std::vector<unsigned int> extruders() const;
|
std::vector<unsigned int> extruders() const;
|
||||||
int validate() %code%{
|
int validate() %code%{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user