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

@@ -394,10 +394,9 @@ void TrackedObjectBBox::SetJsonValue(const Json::Value root)
protobufDataPath = root["protobuf_data_path"].asString();
// Set the id of the child clip
// Does not allow to link to the parent clip
if (!root["child_clip_id"].isNull() && root["box_id"].asString() != ""){
if (!root["child_clip_id"].isNull() && root["child_clip_id"].asString() != ""){
Clip* parentClip = (Clip *) ParentClip();
if(parentClip && (root["child_clip_id"].asString() != parentClip->Id())){
ChildClipId(root["child_clip_id"].asString());
}