|
@@ -426,7 +426,7 @@ export class SPolygonItem extends SGraphItem {
|
|
|
*/
|
|
|
protected recordAction(SGraphCommand: any, any: any[]): void {
|
|
|
// 记录相关命令并推入堆栈中
|
|
|
- const sgraphcommand = new SGraphCommand(this, ...any);
|
|
|
+ const sgraphcommand = new SGraphCommand(this.scene, this, ...any);
|
|
|
if (this.undoStack) {
|
|
|
this.undoStack.push(sgraphcommand);
|
|
|
}
|