From 419a95e73b8b3bbfdf015d33c9d21e4f748a0397 Mon Sep 17 00:00:00 2001 From: Adam Gerhant <116332429+adamgerhant@users.noreply.github.com> Date: Fri, 14 Feb 2025 22:47:48 -0800 Subject: [PATCH] Fix unresolved types in graph wires when repeatedly undoing and redoing (#2283) fix unresolved types when repeatedly undoing and redoing --- .../src/messages/portfolio/document/document_message_handler.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/src/messages/portfolio/document/document_message_handler.rs b/editor/src/messages/portfolio/document/document_message_handler.rs index 8cef1fb9..342c55d4 100644 --- a/editor/src/messages/portfolio/document/document_message_handler.rs +++ b/editor/src/messages/portfolio/document/document_message_handler.rs @@ -1679,6 +1679,7 @@ impl DocumentMessageHandler { // Set the previous network navigation metadata to the current navigation metadata network_interface.copy_all_navigation_metadata(&self.network_interface); + std::mem::swap(&mut network_interface.resolved_types, &mut self.network_interface.resolved_types); //Update the metadata transform based on document PTZ let transform = self.navigation_handler.calculate_offset_transform(ipp.viewport_bounds.center(), &self.document_ptz);