Fix by reference object issue on relationship.

This commit is contained in:
Paulo Gustavo Veiga 2022-11-29 19:08:49 -08:00
parent 7f26432e06
commit 2bb205ce4a

View File

@ -46,9 +46,10 @@ class MoveControlPointCommand extends Command {
const model = relationship.getModel();
this._oldCtrPoint =
PivotType.Start === ctrIndex ? model.getSrcCtrlPoint() : model.getDestCtrlPoint();
this._oldCtrPoint = { ...this._oldCtrPoint };
// New relationship ...
this._newCtrPoint = controlPoints.getControlPointPosition(ctrIndex);
this._newCtrPoint = { ...controlPoints.getControlPointPosition(ctrIndex) };
}
execute() {