Fixed slow Script Canvas loading by moving error icon construction in NodePaletteTreeItem.

Signed-off-by: Chris Galvan <chgalvan@amazon.com>
This commit is contained in:
Chris Galvan
2021-11-17 11:13:38 -06:00
parent a051bdeeb0
commit 21c3aba7da
4 changed files with 8 additions and 7 deletions
@@ -881,6 +881,7 @@ namespace ScriptCanvasEditor
void NodePaletteModel::RepopulateModel()
{
AZ_PROFILE_FUNCTION(ScriptCanvas);
ClearRegistry();
PopulateNodePaletteModel((*this));