mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-21 22:27:56 +01:00
Fix by reference object issue on relationship.
This commit is contained in:
parent
7f26432e06
commit
2bb205ce4a
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user