Merge remote-tracking branch 'origin/master' into dotnet7
# Conflicts: # README.md
This commit is contained in:
@@ -274,6 +274,7 @@ namespace FlaxEditor.Modules.SourceCodeEditing
|
||||
{
|
||||
ScriptsBuilder.ScriptsReload += OnScriptsReload;
|
||||
ScriptsBuilder.ScriptsReloadEnd += OnScriptsReloadEnd;
|
||||
ScriptsBuilder.ScriptsLoaded += OnScriptsLoaded;
|
||||
Editor.Options.OptionsChanged += OnOptionsChanged;
|
||||
|
||||
// Add default code editors (in-build)
|
||||
@@ -344,6 +345,7 @@ namespace FlaxEditor.Modules.SourceCodeEditing
|
||||
|
||||
ScriptsBuilder.ScriptsReload -= OnScriptsReload;
|
||||
ScriptsBuilder.ScriptsReloadEnd -= OnScriptsReloadEnd;
|
||||
ScriptsBuilder.ScriptsLoaded -= OnScriptsLoaded;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -379,6 +381,12 @@ namespace FlaxEditor.Modules.SourceCodeEditing
|
||||
OnTypesChanged();
|
||||
}
|
||||
|
||||
private void OnScriptsLoaded()
|
||||
{
|
||||
// Clear any state with engine-only types
|
||||
ClearTypes();
|
||||
}
|
||||
|
||||
private static bool IsTypeValidScriptingType(ScriptType t)
|
||||
{
|
||||
return !t.IsGenericType && !t.IsAbstract && !t.HasAttribute(typeof(HideInEditorAttribute), false);
|
||||
|
||||
Reference in New Issue
Block a user