File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -120,11 +120,12 @@ C3DFileAdapter::extendRead(const std::string& fileName) const {
120
120
// BTK reads empty values as zero, but sets a "residual" value
121
121
// to -1 and it is how it knows to export these values as
122
122
// blank, instead of 0, when exporting to .trc
123
- if (!pt->GetValues ().row (f).isZero () && // not precisely zero
123
+ // Read in value if it is not zero or residual is not -1
124
+ if (!pt->GetValues ().row (f).isZero () || // not precisely zero
124
125
(pt->GetResiduals ().coeff (f) != -1 ) ) {// residual is not -1
125
126
row[m] = SimTK::Vec3{ pt->GetValues ().coeff (f, 0 ),
126
- pt->GetValues ().coeff (f, 1 ),
127
- pt->GetValues ().coeff (f, 2 ) };
127
+ pt->GetValues ().coeff (f, 1 ),
128
+ pt->GetValues ().coeff (f, 2 ) };
128
129
}
129
130
++m;
130
131
}
You can’t perform that action at this time.
0 commit comments