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>2018-11-02 21:49:40 +0300
committerbubnikv <bubnikv@gmail.com>2018-11-02 21:49:40 +0300
commitcf5dcfa9ed091d9a1b982ddb489ef72bb5528463 (patch)
treeebf1cd603d6c0fe5d43a0bad0ef18e400f380c60 /xs
parentd26d90ac85e948a1d54d8026d356290655871c6b (diff)
ModelBase ID refactoring, starting to work.
Now it remains to clean up some of the no more used Model interfaces.
Diffstat (limited to 'xs')
-rw-r--r--xs/xsp/Model.xsp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xs/xsp/Model.xsp b/xs/xsp/Model.xsp
index 180e052ff..a198b1b9f 100644
--- a/xs/xsp/Model.xsp
+++ b/xs/xsp/Model.xsp
@@ -32,7 +32,7 @@
%name{_add_object} Ref<ModelObject> add_object();
Ref<ModelObject> _add_object_clone(ModelObject* other, bool copy_volumes = true)
- %code%{ RETVAL = THIS->add_object(*other, copy_volumes); %};
+ %code%{ auto ptr = THIS->add_object(*other); if (! copy_volumes) ptr->clear_volumes(); RETVAL = ptr; %};
void delete_object(size_t idx);
void clear_objects();
size_t objects_count()