Fixed clip transform handler when attached to object

This commit is contained in:
Brenno
2021-01-19 16:03:51 -03:00
parent f8198d668f
commit a7d2b6adab
6 changed files with 90 additions and 56 deletions

View File

@@ -440,7 +440,7 @@ Json::Value TrackedObjectBBox::add_property_json(std::string name, float value,
}
// Return the bounding box properties and it's keyframes indexed by their names
std::map<std::string, float> TrackedObjectBBox::GetBoxValues(int64_t frame_number){
std::map<std::string, float> TrackedObjectBBox::GetBoxValues(int64_t frame_number) const {
// Create the map
std::map<std::string, float> boxValues;
@@ -467,7 +467,7 @@ std::map<std::string, float> TrackedObjectBBox::GetBoxValues(int64_t frame_numbe
}
// Return properties of this object's parent clip
std::map<std::string, float> TrackedObjectBBox::GetParentClipProperties(int64_t frame_number){
std::map<std::string, float> TrackedObjectBBox::GetParentClipProperties(int64_t frame_number) const {
// Get the parent clip of this object as a Clip pointer
Clip* parentClip = (Clip *) ParentClip();