Fixed attaching a clip to Tracker and ObjectDetection

Some problems still persists
- Saved projects are not loading properly
- There is an aspect ratio issue when attaching an emoji to the ObjectDetection
This commit is contained in:
Brenno
2021-04-18 19:28:28 -03:00
parent 2c9d2f2a32
commit 5f853a3430
5 changed files with 58 additions and 27 deletions

View File

@@ -135,13 +135,11 @@ void EffectBase::SetJsonValue(Json::Value root) {
// TODO: Fix recursive call for Object Detection
// // Loop through the effects and check if we have a child effect linked to this effect
// for (auto const& effect : effects){
// // Set the properties of all effects which parentEffect points to this
// if ((effect->info.parent_effect_id == this->Id()) && (effect->Id() != this->Id()))
// std::cout<<"passou3 \n";
// effect->SetJsonValue(root);
// }
for (auto const& effect : effects){
// Set the properties of all effects which parentEffect points to this
if ((effect->info.parent_effect_id == this->Id()) && (effect->Id() != this->Id()))
effect->SetJsonValue(root);
}
}
// Set this effect properties with the parent effect properties (except the id and parent_effect_id)