瀏覽代碼

serialize cached oldGeometry (#28361)

ycw 1 年之前
父節點
當前提交
285753ae60
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      editor/js/commands/SetGeometryCommand.js

+ 1 - 1
editor/js/commands/SetGeometryCommand.js

@@ -57,7 +57,7 @@ class SetGeometryCommand extends Command {
 		const output = super.toJSON( this );
 
 		output.objectUuid = this.object.uuid;
-		output.oldGeometry = this.object.geometry.toJSON();
+		output.oldGeometry = this.oldGeometry.toJSON();
 		output.newGeometry = this.newGeometry.toJSON();
 
 		return output;