添加特性保证实体能够正确的撤销

pull/8/head
ChenX 7 years ago
parent 7b9b73937c
commit 359f12bbac

@ -99,6 +99,7 @@ export class Polyline extends Entity
} }
MoveStretchPoints(indexList: Array<number>, vec: Vector3) MoveStretchPoints(indexList: Array<number>, vec: Vector3)
{ {
this.WriteAllObjectRecord();
let moveVc = new Vector2(vec.x, vec.y); let moveVc = new Vector2(vec.x, vec.y);
if (indexList[0] % 2 === 0) if (indexList[0] % 2 === 0)
this.m_LineData[indexList[0] / 2].pt = this.m_LineData[indexList[0] / 2].pt.add(moveVc); this.m_LineData[indexList[0] / 2].pt = this.m_LineData[indexList[0] / 2].pt.add(moveVc);

Loading…
Cancel
Save