Browse Source

serialize cached oldGeometry (#28361)

ycw 1 year ago
parent
commit
285753ae60
1 changed files with 1 additions and 1 deletions
  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;