Move keyframe resizing from compilation to attach (mjCModel::operator+=).
This allows to resize parent keyframes also when the child has no keyframes. PiperOrigin-RevId: 691045299 Change-Id: I3ab6509b13b5754e937ec77daf9efe697cabf1bc
This commit is contained in:
committed by
Copybara-Service
parent
e889cffe23
commit
b941e994d9
@@ -393,9 +393,7 @@ class mjCModel : public mjCModel_, private mjSpec {
|
||||
void ResizeKeyframe(mjCKey* key, const mjtNum* qpos0_, const mjtNum* bpos, const mjtNum* bquat);
|
||||
|
||||
// compute qpos0
|
||||
template <class T>
|
||||
void ComputeReference(std::vector<T>& q0, std::vector<T>& bpos,
|
||||
std::vector<T>& bquat);
|
||||
void ComputeReference();
|
||||
|
||||
mjListKeyMap ids; // map from object names to ids
|
||||
mjCError errInfo; // last error info
|
||||
|
||||
Reference in New Issue
Block a user