Skip to content

Commit b99d9e8

Browse files
havesscopybara-github
authored andcommitted
Fix inherit range pulling from act early attribute when parsing USD to MjSpec.
PiperOrigin-RevId: 783735573 Change-Id: I988f16cd16e47caa84a30009c36a932ec3672429
1 parent ac0701d commit b99d9e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/experimental/usd/usd_to_mjspec.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -950,8 +950,8 @@ void ParseMjcPhysicsActuator(mjSpec* spec,
950950
}
951951

952952
auto inherit_range_attr = tran.GetMjcInheritRangeAttr();
953-
if (act_early_attr.HasAuthoredValue()) {
954-
act_early_attr.Get(&mj_act->inheritrange);
953+
if (inherit_range_attr.HasAuthoredValue()) {
954+
inherit_range_attr.Get(&mj_act->inheritrange);
955955
}
956956

957957
auto ref_site_rel = tran.GetMjcRefSiteRel();

0 commit comments

Comments
 (0)