Skip to content

Commit

Permalink
Fix Point Kinematics Reporter Variable Error
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbeattie42 committed Nov 13, 2024
1 parent 2300a90 commit f3cd5f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OpenSim/Analyses/PointKinematics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -368,15 +368,15 @@ void PointKinematics::setRelativeToBody(const PhysicalFrame* aBody)
// CHECK
if (aBody==NULL) {
log_warn("PointKinematics.setRelativeToBody: null body pointer.");
_body = NULL;
_relativeToBody = NULL;
return;
}

// SET
_relativeToBody = aBody;
_relativeToBodyName = aBody->getName();
log_info("PointKinematics.setRelativeToBody: set relative-to body to {}.",
_bodyName);
_relativeToBodyName);
}

//_____________________________________________________________________________
Expand Down

0 comments on commit f3cd5f0

Please sign in to comment.