mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-21 07:41:09 -06:00
WIP: Moving ownership of PrintRegions to PrintObjects.
This commit is contained in:
parent
d21b9aa089
commit
714149dab2
9 changed files with 184 additions and 175 deletions
|
@ -98,9 +98,9 @@ _constant()
|
|||
%code%{ RETVAL = THIS->objects().size(); %};
|
||||
|
||||
PrintRegionPtrs* regions()
|
||||
%code%{ RETVAL = const_cast<PrintRegionPtrs*>(&THIS->regions_mutable()); %};
|
||||
%code%{ RETVAL = const_cast<PrintRegionPtrs*>(&THIS->print_regions_mutable()); %};
|
||||
Ref<PrintRegion> get_region(int idx)
|
||||
%code%{ RETVAL = THIS->regions_mutable()[idx]; %};
|
||||
%code%{ RETVAL = THIS->print_regions_mutable()[idx]; %};
|
||||
size_t region_count()
|
||||
%code%{ RETVAL = THIS->regions().size(); %};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue