Changed None to empty string, corrected dynamic pointers

This commit is contained in:
Brenno
2021-04-12 21:32:27 -03:00
parent a7cefa4bd2
commit 2cf2c55f9b
8 changed files with 24 additions and 23 deletions

View File

@@ -370,7 +370,7 @@ void TrackedObjectBBox::SetJsonValue(const Json::Value root)
{
// Set the Id by the given JSON object
if (!root["box_id"].isNull() && root["box_id"].asString() != "None")
if (!root["box_id"].isNull() && root["box_id"].asString() != "")
Id(root["box_id"].asString());
// Set the BaseFps by the given JSON object
@@ -395,7 +395,7 @@ void TrackedObjectBBox::SetJsonValue(const Json::Value root)
// 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() != "None"){
if (!root["child_clip_id"].isNull() && root["box_id"].asString() != ""){
Clip* parentClip = (Clip *) ParentClip();
if(parentClip && (root["child_clip_id"].asString() != parentClip->Id())){