FIX: [STUDIO-3068] optimize loading into object list

Change-Id: I8367b41ee0c3149f62372c285237cbc736a690cd
This commit is contained in:
chunmao.guo 2023-06-06 09:15:00 +08:00 committed by Lane.Wei
parent 42bde27302
commit 2f2c131599
3 changed files with 20 additions and 3 deletions

View file

@ -326,6 +326,7 @@ public:
// Add object to the list
// @param do_info_update: [Arthur] this function becomes slow as more functions are added, but I only need a fast version in FillBedJob, and I don't care about any info updates, so I pass a do_info_update param to skip all the uneccessary steps.
void add_objects_to_list(std::vector<size_t> obj_idxs, bool call_selection_changed = true, bool notify_partplate = true, bool do_info_update = true);
void add_object_to_list(size_t obj_idx, bool call_selection_changed = true, bool notify_partplate = true, bool do_info_update = true);
// Add object's volumes to the list
// Return selected items, if add_to_selection is defined