Autogenerate more of mjVFS and mjvGeom WASM bindings
PiperOrigin-RevId: 827898643 Change-Id: I95f9eaa129f663cbeb3606d286c2080c47cfbcc4
This commit is contained in:
committed by
Copybara-Service
parent
f808632cf8
commit
34e5eecba5
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user