Allow the user to hide the blue bounding box on the Tracker effect

This will still keep the child clip visible
This commit is contained in:
Brenno
2021-03-18 12:25:22 -03:00
parent a33497a630
commit 7272ff0928
4 changed files with 26 additions and 2 deletions

View File

@@ -37,7 +37,7 @@
namespace openshot{
// Blank constructor
TrackedObjectBase::TrackedObjectBase() : visible(1.0)
TrackedObjectBase::TrackedObjectBase() : visible(1.0), draw_box(1)
{
// Initializes the id as "None"
id = "None";
@@ -50,4 +50,15 @@ namespace openshot{
Id(_id);
childClipId = "None";
}
Json::Value TrackedObjectBase::add_property_choice_json(std::string name, int value, int selected_value) const {
// Create choice
Json::Value new_choice = Json::Value(Json::objectValue);
new_choice["name"] = name;
new_choice["value"] = value;
new_choice["selected"] = (value == selected_value);
// return JsonValue
return new_choice;
}
}