Track authored flags for global attributes

PiperOrigin-RevId: 931585539
Change-Id: Ifdc8c59de6c5a553daf6e0af09d8192aff6b0610
This commit is contained in:
Yuval Tassa
2026-06-13 02:57:52 -07:00
committed by Copybara-Service
parent 0ea9c7cb3a
commit 67a1ea6dca
21 changed files with 823 additions and 195 deletions
+6 -3
View File
@@ -666,7 +666,8 @@ MjSpec::MjSpec()
compiler(&ptr_->compiler),
option(&ptr_->option),
visual(&ptr_->visual),
stat(&ptr_->stat) {
stat(&ptr_->stat),
authored(&ptr_->authored) {
owned_ = true;
mjs_defaultSpec(ptr_);
};
@@ -677,7 +678,8 @@ MjSpec::MjSpec(mjSpec *ptr)
compiler(&ptr_->compiler),
option(&ptr_->option),
visual(&ptr_->visual),
stat(&ptr_->stat) {}
stat(&ptr_->stat),
authored(&ptr_->authored) {}
MjSpec::MjSpec(const MjSpec &other)
: ptr_(mj_copySpec(other.get())),
@@ -685,7 +687,8 @@ MjSpec::MjSpec(const MjSpec &other)
compiler(&ptr_->compiler),
option(&ptr_->option),
visual(&ptr_->visual),
stat(&ptr_->stat) {
stat(&ptr_->stat),
authored(&ptr_->authored) {
owned_ = true;
}