Skip to content

Commit f7ae39d

Browse files
committed
Added copying of trajectory description to CopyTrajectory.
This was a bug noticed by @mkoval in #278.
1 parent f27f454 commit f7ae39d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/prpy/util.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ def CopyTrajectory(traj, env=None):
291291
copy_traj = openravepy.RaveCreateTrajectory(env or traj.GetEnv(),
292292
traj.GetXMLId())
293293
copy_traj.Clone(traj, 0)
294+
copy_traj.SetDescription(traj.GetDescription())
294295
return copy_traj
295296

296297

0 commit comments

Comments
 (0)