diff --git a/Changes.md b/Changes.md index a8441cb5b9e..55e383e8d38 100644 --- a/Changes.md +++ b/Changes.md @@ -20,6 +20,7 @@ Fixes - Windows : - Fixed a bug preventing anything except strings from being copied and pasted. - Fixed likely cause of crash when resizing Spreadsheet column width (#5296). +- Reference : Fixed rare reloading error. 1.3.5.0 (relative to 1.3.4.0) ======= diff --git a/src/Gaffer/Reference.cpp b/src/Gaffer/Reference.cpp index 8c38767ce28..2c5a98234a1 100644 --- a/src/Gaffer/Reference.cpp +++ b/src/Gaffer/Reference.cpp @@ -395,6 +395,11 @@ class Reference::PlugEdits : public Signals::Trackable return; } + for( Plug::RecursiveIterator it( plug ); !it.done(); ++it ) + { + m_plugEdits.erase( it->get() ); + } + m_plugEdits.erase( plug ); }