| 50 | } |
| 51 | |
| 52 | static bool IsLayerReferenced(pag::ID id, const std::vector<pag::Layer*>& layers, |
| 53 | bool lastLayerHasTrackMatte) { |
| 54 | if (IsLayerReferencedByEffect(id, layers)) { |
| 55 | return true; |
| 56 | } |
| 57 | |
| 58 | auto iter = std::find_if(layers.begin(), layers.end(), [id](pag::Layer* layer) -> bool { |
| 59 | return layer->parent != nullptr && id == layer->parent->id; |
| 60 | }); |
| 61 | if (iter != layers.end()) { |
| 62 | return true; |
| 63 | } |
| 64 | |
| 65 | return lastLayerHasTrackMatte; |
| 66 | } |
| 67 | |
| 68 | static pag::Layer* ExportLayer(const AEGP_LayerH& layerHandle, |
| 69 | std::shared_ptr<PAGExportSession> session); |
no test coverage detected