Pārlūkot izejas kodu

serialize cached oldGeometry (#28361)

ycw 1 gadu atpakaļ
vecāks
revīzija
285753ae60
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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;