We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a271cd commit 5762253Copy full SHA for 5762253
Code/Framework/AzToolsFramework/AzToolsFramework/Prefab/PrefabFocusHandler.cpp
@@ -288,7 +288,10 @@ namespace AzToolsFramework::Prefab
288
m_rootAliasFocusPathLength = aznumeric_cast<int>(AZStd::distance(m_rootAliasFocusPath.begin(), m_rootAliasFocusPath.end()));
289
290
// Unset the DOM caching for previous focus and enabled it in new focus to optimize editing.
291
- previousFocusedInstance->get().EnableDomCaching(false);
+ if (previousFocusedInstance.has_value())
292
+ {
293
+ previousFocusedInstance->get().EnableDomCaching(false);
294
+ }
295
focusedInstance->get().EnableDomCaching(true);
296
297
// Focus on the container entity in the Editor, if the interface is initialized.
0 commit comments