Skip to content

Commit 5f1ca6c

Browse files
committed
prevent exception switching assets while highlights are enabledand viewing an alt group
1 parent 160b9d3 commit 5f1ca6c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ui/viewmodels/AssetEditorViewModel.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,9 @@ void AssetEditorViewModel::LoadAsset(ra::data::models::AssetModelBase* pAsset, b
230230
SetValue(IsAssetLoadedProperty, true);
231231

232232
UpdateMeasuredValue();
233+
234+
if (AreDebugHighlightsEnabled())
235+
UpdateDebugHighlights();
233236
}
234237
else
235238
{
@@ -416,7 +419,7 @@ void AssetEditorViewModel::OnViewModelIntValueChanged(const IntModelProperty::Ch
416419
OnTriggerChanged();
417420
else if (args.Property == TriggerViewModel::SelectedGroupIndexProperty)
418421
{
419-
if (AreDebugHighlightsEnabled())
422+
if (m_pAsset && AreDebugHighlightsEnabled())
420423
UpdateDebugHighlights();
421424
}
422425
}

0 commit comments

Comments
 (0)