修复子命令撤销重做的回归BUG

pull/493/MERGE
ChenX 5 years ago
parent b867c65987
commit 74c14bad47

@ -20,9 +20,11 @@ export class CreateObjectData extends CADObject
//记录数据,在命令结束的时候记录
Save()
{
if (this.Object)
if (this.Object && this.CADFiler.Data.length === 0)
{
this.CADFiler.Data.length = 0;
this.CADFiler.WriteObject(this.Object);
}
return this;
}

@ -77,10 +77,14 @@ export class HistoricManage extends CADObject
return this.historyRecord[this.historyRecord.length - 1];
}
//开始子命令标记
StartMark()
{
if (this._SignalCommandHistory)
{
this._SignalCommandHistory.EndCmd();
this._SignalCommandHistory.StartCmd("");
}
}
/**

Loading…
Cancel
Save