Autogenerate more of mjVFS and mjvGeom WASM bindings

PiperOrigin-RevId: 827898643
Change-Id: I95f9eaa129f663cbeb3606d286c2080c47cfbcc4
This commit is contained in:
Matija Kecman
2025-11-04 03:59:28 -08:00
committed by Copybara-Service
parent f808632cf8
commit 34e5eecba5
4 changed files with 104 additions and 68 deletions
+6 -2
View File
@@ -311,7 +311,9 @@ MjLROpt& MjLROpt::operator=(const MjLROpt &other) {
return *this;
}
MjLROpt::~MjLROpt() {
if (owned_ && ptr_) delete ptr_;
if (owned_ && ptr_) {
delete ptr_;
}
}
std::unique_ptr<MjLROpt> MjLROpt::copy() {
return std::make_unique<MjLROpt>(*this);
@@ -372,7 +374,9 @@ MjvLight& MjvLight::operator=(const MjvLight &other) {
return *this;
}
MjvLight::~MjvLight() {
if (owned_ && ptr_) delete ptr_;
if (owned_ && ptr_) {
delete ptr_;
}
}
std::unique_ptr<MjvLight> MjvLight::copy() {
return std::make_unique<MjvLight>(*this);