Returns the union set of layer IDs of the current selection
| 32 | |
| 33 | // Returns the union set of layer IDs of the current selection |
| 34 | scene::LayerList getAllLayersOfSelection() |
| 35 | { |
| 36 | scene::LayerList unionSet; |
| 37 | |
| 38 | GlobalSelectionSystem().foreachSelected([&](const scene::INodePtr& node) |
| 39 | { |
| 40 | const auto& layers = node->getLayers(); |
| 41 | unionSet.insert(layers.begin(), layers.end()); |
| 42 | }); |
| 43 | |
| 44 | return unionSet; |
| 45 | } |
| 46 | |
| 47 | void exportSelectedAsModel(const model::ModelExportOptions& options) |
| 48 | { |
no test coverage detected