Skip to content

Commit

Permalink
Removed IKeyFrame.h and applied minor fixes to Clip.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
BrennoCaldato committed Jan 14, 2021
1 parent 3d5d907 commit 7cce93e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 94 deletions.
6 changes: 3 additions & 3 deletions src/Clip.cpp
Expand Up @@ -945,8 +945,10 @@ void Clip::SetJsonValue(const Json::Value root) {
// Set data from Json (if key is found)
if (!root["attached_id"].isNull())
attached_id = root["attached_id"].asString();
if (attached_id.size() > 0){
if (attached_id.size() > 0 && attached_id != "None"){
AttachToTracker(attached_id);
} else{
attachedObject = nullptr;
}
if (!root["gravity"].isNull())
gravity = (GravityType) root["gravity"].asInt();
Expand Down Expand Up @@ -1265,7 +1267,6 @@ void Clip::apply_keyframes(std::shared_ptr<Frame> frame, int width, int height)

/* TRANSFORM CLIP TO ATTACHED OBJECT'S POSITION AND DIMENSION */
if (attachedObject){

// Access the KeyframeBBox properties
std::map<std::string, float> boxValues = attachedObject->GetBoxValues(frame->number);

Expand All @@ -1275,7 +1276,6 @@ void Clip::apply_keyframes(std::shared_ptr<Frame> frame, int width, int height)
scale_x.AddPoint(frame->number, boxValues["w"]*boxValues["sx"]*2.0);
scale_y.AddPoint(frame->number, boxValues["h"]*boxValues["sy"]);
rotation.AddPoint(frame->number, boxValues["r"]);

}

/* GRAVITY LOCATION - Initialize X & Y to the correct values (before applying location curves) */
Expand Down
90 changes: 0 additions & 90 deletions src/IKeyFrame.h

This file was deleted.

1 change: 0 additions & 1 deletion src/KeyFrameBBox.h
Expand Up @@ -41,7 +41,6 @@
#include "Coordinate.h"
#include "Point.h"
#include "Json.h"
#include "IKeyFrame.h"
#include "KeyFrame.h"
#include "KeyFrameBase.h"
#include "protobuf_messages/trackerdata.pb.h"
Expand Down

0 comments on commit 7cce93e

Please sign in to comment.