Skip to content

Commit 6a103d8

Browse files
committed
Fixed bug introduced by clone refactor.
We reordered the logic for the definition of the `env.Cloned` helper method but did not remove the original reference.
1 parent f27f454 commit 6a103d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/prpy/clone.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def __init__(self, parent_env, clone_env=None, destroy_on_exit=None,
108108
' while in collision.'
109109
.format(robot.GetName())
110110
)
111-
cloned_robot = self.clone_env.Cloned(robot)
111+
cloned_robot = Cloned(robot, into=self.clone_env)
112112
cloned_robot.RegrabAll()
113113

114114
# Required for InstanceDeduplicator to call CloneBindings for

0 commit comments

Comments
 (0)