mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-29 20:08:11 +08:00
Fix unresolved types in graph wires when repeatedly undoing and redoing (#2283)
fix unresolved types when repeatedly undoing and redoing
This commit is contained in:
@@ -1679,6 +1679,7 @@ impl DocumentMessageHandler {
|
|||||||
|
|
||||||
// Set the previous network navigation metadata to the current navigation metadata
|
// Set the previous network navigation metadata to the current navigation metadata
|
||||||
network_interface.copy_all_navigation_metadata(&self.network_interface);
|
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
|
//Update the metadata transform based on document PTZ
|
||||||
let transform = self.navigation_handler.calculate_offset_transform(ipp.viewport_bounds.center(), &self.document_ptz);
|
let transform = self.navigation_handler.calculate_offset_transform(ipp.viewport_bounds.center(), &self.document_ptz);
|
||||||
|
|||||||
Reference in New Issue
Block a user