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:
Alessio Quaglino
2024-10-29 09:16:54 -07:00
committed by Copybara-Service
parent e889cffe23
commit b941e994d9
3 changed files with 96 additions and 35 deletions
+1 -3
View File
@@ -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