Allow clearing of the child_clip_id property

This commit is contained in:
Jonathan Thomas
2023-04-13 17:11:11 -05:00
parent 5869eb83e9
commit 38ab27e22e

View File

@@ -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());