Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/xs
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2019-03-13 17:44:50 +0300
committerbubnikv <bubnikv@gmail.com>2019-03-13 17:44:50 +0300
commit18025cc669c2b855b23a451bad230f15ef266697 (patch)
tree82bddad38c51c08dc533bc7738a825c085ddf239 /xs
parent75cf1cde9254eb77760b5ada94141c9e53a148b7 (diff)
Reworked the command line interface based on the current state
of the upstream. Thanks @alexrj, @lordofhyphens for the original code of slic3r.cpp
Diffstat (limited to 'xs')
-rw-r--r--xs/src/perlglue.cpp4
-rw-r--r--xs/xsp/Config.xsp2
2 files changed, 6 insertions, 0 deletions
diff --git a/xs/src/perlglue.cpp b/xs/src/perlglue.cpp
index bcf84b957..da1d7abbf 100644
--- a/xs/src/perlglue.cpp
+++ b/xs/src/perlglue.cpp
@@ -115,6 +115,8 @@ SV* ConfigOption_to_SV(const ConfigOption &opt, const ConfigOptionDef &def)
}
case coPoint:
return perl_to_SV_clone_ref(static_cast<const ConfigOptionPoint*>(&opt)->value);
+ case coPoint3:
+ return perl_to_SV_clone_ref(static_cast<const ConfigOptionPoint3*>(&opt)->value);
case coPoints:
{
auto optv = static_cast<const ConfigOptionPoints*>(&opt);
@@ -248,6 +250,8 @@ bool ConfigBase__set(ConfigBase* THIS, const t_config_option_key &opt_key, SV* v
}
case coPoint:
return from_SV_check(value, &static_cast<ConfigOptionPoint*>(opt)->value);
+ case coPoint3:
+ return from_SV_check(value, &static_cast<const ConfigOptionPoint3*>(&opt)->value);
case coPoints:
{
std::vector<Vec2d> &values = static_cast<ConfigOptionPoints*>(opt)->values;
diff --git a/xs/xsp/Config.xsp b/xs/xsp/Config.xsp
index d5d295839..017c8dad4 100644
--- a/xs/xsp/Config.xsp
+++ b/xs/xsp/Config.xsp
@@ -159,6 +159,8 @@ print_config_def()
opt_type = "s@";
} else if (optdef->type == coPoint || optdef->type == coPoints) {
opt_type = "point";
+ } else if (optdef.type == coPoint3) {
+ opt_type = "point3";
} else if (optdef->type == coBool || optdef->type == coBools) {
opt_type = "bool";
} else if (optdef->type == coEnum) {