| 1763 | } |
| 1764 | |
| 1765 | std::shared_ptr<AssetParameterModel> EffectStackModel::getAssetModelById(const QString &effectId) |
| 1766 | { |
| 1767 | QWriteLocker locker(&m_lock); |
| 1768 | for (int i = 0; i < rootItem->childCount(); ++i) { |
| 1769 | std::shared_ptr<EffectItemModel> sourceEffect = std::static_pointer_cast<EffectItemModel>(rootItem->child(i)); |
| 1770 | if (effectId == sourceEffect->getAssetId()) { |
| 1771 | return std::static_pointer_cast<AssetParameterModel>(sourceEffect); |
| 1772 | } |
| 1773 | } |
| 1774 | return nullptr; |
| 1775 | } |
| 1776 | |
| 1777 | bool EffectStackModel::hasFilter(const QString &effectId) const |
| 1778 | { |
no test coverage detected