From 8e8212db5b19a330f484eb7bd7c54794483ca7f5 Mon Sep 17 00:00:00 2001 From: Alewinn Date: Sun, 14 Jun 2026 23:34:28 +0200 Subject: [PATCH] Fix : Visject list types don't update after second hotreload --- Source/Editor/Surface/VisjectSurface.ContextMenu.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Editor/Surface/VisjectSurface.ContextMenu.cs b/Source/Editor/Surface/VisjectSurface.ContextMenu.cs index ffb1c725a..6054f9f84 100644 --- a/Source/Editor/Surface/VisjectSurface.ContextMenu.cs +++ b/Source/Editor/Surface/VisjectSurface.ContextMenu.cs @@ -183,6 +183,9 @@ namespace FlaxEditor.Surface { _cache.Clear(); _version++; + + // Mark type list as dirty to rebuild it next use. + Editor.Instance.CodeEditing.AllWithStd.ClearTypes(); } Editor.Instance.CodeEditing.TypesCleared -= OnCodeEditingTypesCleared;