- Removed possible black background from Tracker and Object Detector effects when using a child clip

- Small refactor to Tracker and Object Detector drawImage code when drawing a Child Clip ID
- Some light code clean-up
This commit is contained in:
Jonathan Thomas
2023-04-14 14:32:48 -05:00
parent 38ab27e22e
commit 5fdb3acfaf
4 changed files with 9 additions and 34 deletions

View File

@@ -382,12 +382,7 @@ void TrackedObjectBBox::SetJsonValue(const Json::Value root)
// Set the id of the child clip
if (!root["child_clip_id"].isNull() && root["child_clip_id"].asString() != Id()){
Clip* parentClip = (Clip *) ParentClip();
if (parentClip && root["child_clip_id"].asString() != parentClip->Id()) {
ChildClipId(root["child_clip_id"].asString());
} else if (parentClip == NULL) {
ChildClipId(root["child_clip_id"].asString());
}
ChildClipId(root["child_clip_id"].asString());
}
// Set the Keyframes by the given JSON object