mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 14:47: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();
|
const model = relationship.getModel();
|
||||||
this._oldCtrPoint =
|
this._oldCtrPoint =
|
||||||
PivotType.Start === ctrIndex ? model.getSrcCtrlPoint() : model.getDestCtrlPoint();
|
PivotType.Start === ctrIndex ? model.getSrcCtrlPoint() : model.getDestCtrlPoint();
|
||||||
|
this._oldCtrPoint = { ...this._oldCtrPoint };
|
||||||
|
|
||||||
// New relationship ...
|
// New relationship ...
|
||||||
this._newCtrPoint = controlPoints.getControlPointPosition(ctrIndex);
|
this._newCtrPoint = { ...controlPoints.getControlPointPosition(ctrIndex) };
|
||||||
}
|
}
|
||||||
|
|
||||||
execute() {
|
execute() {
|
||||||
|
Loading…
Reference in New Issue
Block a user