You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
- 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user