Skip to content

Commit

Permalink
Maintain same terrain when reducing a model
Browse files Browse the repository at this point in the history
  • Loading branch information
xela-95 committed Jun 4, 2024
1 parent f24be35 commit 041b2f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/jaxsim/api/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ def reduce(
reduced_model = JaxSimModel.build(
model_description=reduced_intermediate_description,
model_name=model.name(),
terrain=model.terrain,
)

# Store the origin of the model, in case downstream logic needs it
Expand Down

0 comments on commit 041b2f1

Please sign in to comment.