From 38ab27e22ef591609f1d4ea8a5297e195122cb2a Mon Sep 17 00:00:00 2001 From: Jonathan Thomas Date: Thu, 13 Apr 2023 17:11:11 -0500 Subject: [PATCH] Allow clearing of the child_clip_id property --- src/TrackedObjectBBox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TrackedObjectBBox.cpp b/src/TrackedObjectBBox.cpp index 263e3904..9a3c95a2 100644 --- a/src/TrackedObjectBBox.cpp +++ b/src/TrackedObjectBBox.cpp @@ -381,7 +381,7 @@ void TrackedObjectBBox::SetJsonValue(const Json::Value root) protobufDataPath = root["protobuf_data_path"].asString(); // Set the id of the child clip - if (!root["child_clip_id"].isNull() && root["child_clip_id"].asString() != "" && root["child_clip_id"].asString() != Id()){ + 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());