diff options
author | bubnikv <bubnikv@gmail.com> | 2017-02-22 18:05:14 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2017-02-22 18:05:14 +0300 |
commit | a4dd6c7ce5b6238ef4b445ec6fccbc8f13683e82 (patch) | |
tree | 542ecef1cdaaac7f7ab05e865b3c52951b860bb3 /xs | |
parent | 4a846438949368bc1e008efaafcd1d9f518f5eeb (diff) |
Added missing get_volume() method to the PrintObject Perl interface.
Diffstat (limited to 'xs')
-rw-r--r-- | xs/xsp/Model.xsp | 2 |
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) |