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>2017-02-22 18:05:14 +0300
committerbubnikv <bubnikv@gmail.com>2017-02-22 18:05:14 +0300
commita4dd6c7ce5b6238ef4b445ec6fccbc8f13683e82 (patch)
tree542ecef1cdaaac7f7ab05e865b3c52951b860bb3 /xs
parent4a846438949368bc1e008efaafcd1d9f518f5eeb (diff)
Added missing get_volume() method to the PrintObject Perl interface.
Diffstat (limited to 'xs')
-rw-r--r--xs/xsp/Model.xsp2
1 files changed, 2 insertions, 0 deletions
diff --git a/xs/xsp/Model.xsp b/xs/xsp/Model.xsp
index db6773cb3..91fc7a20b 100644
--- a/xs/xsp/Model.xsp
+++ b/xs/xsp/Model.xsp
@@ -142,6 +142,8 @@ ModelMaterial::attributes()
void clear_volumes();
int volumes_count()
%code%{ RETVAL = THIS->volumes.size(); %};
+ Ref<ModelVolume> get_volume(int idx)
+ %code%{ RETVAL = THIS->volumes.at(idx); %};
%name{_add_instance} Ref<ModelInstance> add_instance();
Ref<ModelInstance> _add_instance_clone(ModelInstance* other)