Informative error if mis-naming the top-level default class.

Also:
- Move the the top-level default class name into the mjCModel constructor.
- Fix bug in default class propagation in frame elements.
PiperOrigin-RevId: 646384669
Change-Id: Icc6154124361a234b84a07e2b5ecaa7c8b18ebf7
This commit is contained in:
Yuval Tassa
2024-06-25 01:45:10 -07:00
committed by Copybara-Service
parent 9e9a0c637e
commit d8b85245a7
4 changed files with 86 additions and 8 deletions
+1
View File
@@ -97,6 +97,7 @@ mjCModel::mjCModel() {
//------------------------ master default set
defaults_.push_back(new mjCDef);
defaults_.back()->name = "main";
// world body
mjCBody* world = new mjCBody(this);