|
|
@ -56,9 +56,6 @@ export class ObjectCollection<T extends CADObject> extends CADObject
|
|
|
|
if (index === -1)
|
|
|
|
if (index === -1)
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
let obj = this.Objects[index];
|
|
|
|
let obj = this.Objects[index];
|
|
|
|
obj.Erase(); //TODO: 导致了多余的历史记录
|
|
|
|
|
|
|
|
obj.GoodBye();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.Objects.splice(index, 1);
|
|
|
|
this.Objects.splice(index, 1);
|
|
|
|
|
|
|
|
|
|
|
|
let undoRec = this.UndoRecord();
|
|
|
|
let undoRec = this.UndoRecord();
|
|
|
@ -70,6 +67,7 @@ export class ObjectCollection<T extends CADObject> extends CADObject
|
|
|
|
|
|
|
|
|
|
|
|
undoRec.WriteObjectHistoryPath(this, hisRec);
|
|
|
|
undoRec.WriteObjectHistoryPath(this, hisRec);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
obj.GoodBye();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//#region -----------------------------File-----------------------------
|
|
|
|
//#region -----------------------------File-----------------------------
|
|
|
|