Is it possible to "save world as.." preserving the include tags?

asked 2021-09-29 10:06:58 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I created an empty world using the empty SDF template:

<sdf version="1.5">
  <world name="default">
    <!-- A global light source -->
    <include>
      <uri>model://sun</uri>
    </include>
    <!-- A ground plane -->
    <include>
      <uri>model://ground_plane</uri>
    </include>
  </world>
</sdf>

Whenever I try to save a copy of it, adding new models or not, it saves a new SDF file without the include tags, which makes my new world file so big.

Is there an option, maybe an argument or even CLI, to preserve or force include tags to make the world file cleaner?

Regards

edit retag flag offensive close merge delete