You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Removed Excess information from json.
This commit is contained in:
@@ -381,13 +381,13 @@ Json::Value KeyFrameBBox::JsonValue() {
|
||||
root["boxes"] = Json::Value(Json::arrayValue);
|
||||
|
||||
// loop through points
|
||||
for (auto const& x : BoxVec){
|
||||
/*for (auto const& x : BoxVec){
|
||||
Json::Value elem;
|
||||
elem["key"] = x.first;
|
||||
elem["val"] = x.second.JsonValue();
|
||||
root["boxes"].append(elem);
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
root["delta_x"] = delta_x.JsonValue();
|
||||
root["delta_y"] = delta_y.JsonValue();
|
||||
@@ -445,7 +445,7 @@ void KeyFrameBBox::SetJsonValue(const Json::Value root) {
|
||||
if (!root["TimeScale"].isNull()) {
|
||||
this->TimeScale = (double) root["TimeScale"].asDouble();
|
||||
}
|
||||
|
||||
/*
|
||||
if (!root["boxes"].isNull()){
|
||||
// loop through points
|
||||
for (const auto existing_point : root["boxes"]) {
|
||||
@@ -456,5 +456,6 @@ void KeyFrameBBox::SetJsonValue(const Json::Value root) {
|
||||
BoxVec.insert({existing_point["key"].asDouble(), box});
|
||||
}
|
||||
}
|
||||
*/
|
||||
return;
|
||||
}
|
||||
Reference in New Issue
Block a user