Clarified behavior in comment.

Signed-off-by: Chris Galvan <chgalvan@amazon.com>
This commit is contained in:
Chris Galvan
2021-09-21 11:57:17 -05:00
parent 4e46cb0a01
commit 2bba8fe9a3
@@ -2514,9 +2514,10 @@ namespace LandscapeCanvasEditor
m_prefabPropagationInProgress = false;
// After prefab propagation is complete, the entity tied to one of our open
// graphs might have been deleted (e.g. if a prefab was created from that entity),
// so we need to close that graph to be safe. We need to close them in a separate
// iterator because the CloseEditor API will end up modifying m_dockWidgetsByEntity.
// graphs might have been deleted (e.g. if a prefab was created from that entity).
// Any open graphs tied to an entity that no longer exists will need to be closed.
// We need to close them in a separate iterator because the CloseEditor API will
// end up modifying m_dockWidgetsByEntity.
AZStd::vector<GraphCanvas::DockWidgetId> dockWidgetsToDelete;
for (auto [entityId, dockWidgetId] : m_dockWidgetsByEntity)
{