mirror of
https://github.com/moveit/moveit_task_constructor.git
synced 2025-11-04 14:49:57 +08:00
fix ContainerBasePrivate::copyState(): don't copy (again) on update
This commit is contained in:
parent
b3af170663
commit
862ac37cd6
@ -98,7 +98,9 @@ bool ContainerBasePrivate::compute()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ContainerBasePrivate::copyState(Interface::iterator external, const InterfacePtr& target, bool updated) {
|
void ContainerBasePrivate::copyState(Interface::iterator external, const InterfacePtr& target, bool updated) {
|
||||||
// TODO need to update existing mapping?
|
// TODO: update internal's prio from external's new priority
|
||||||
|
if (updated)
|
||||||
|
return;
|
||||||
|
|
||||||
// create a clone of external state within target interface (child's starts() or ends())
|
// create a clone of external state within target interface (child's starts() or ends())
|
||||||
InterfaceState& internal = *target->clone(*external);
|
InterfaceState& internal = *target->clone(*external);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user