| 77 | } |
| 78 | |
| 79 | static void ClearLayerName(pag::Composition* composition) { |
| 80 | if (composition->type() != pag::CompositionType::Vector) { |
| 81 | return; |
| 82 | } |
| 83 | |
| 84 | for (auto layer : static_cast<pag::VectorComposition*>(composition)->layers) { |
| 85 | layer->name = ""; |
| 86 | if (layer->type() == pag::LayerType::PreCompose) { |
| 87 | auto subCompostion = static_cast<pag::PreComposeLayer*>(layer)->composition; |
| 88 | if (subCompostion->type() == pag::CompositionType::Vector) { |
| 89 | ClearLayerName(subCompostion); |
| 90 | } |
| 91 | } |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | static pag::Point GetImageMaxScale(pag::Composition* composition, pag::ID imageID) { |
| 96 | if (composition->type() != pag::CompositionType::Vector) { |