Merge pull request #26673 from willnationsdev/fix-inspector-plugin

Fix inspector plugin
This commit is contained in:
Rémi Verschelde 2019-03-06 01:14:48 +01:00 committed by GitHub
commit 2940475c71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -1294,6 +1294,10 @@ void EditorInspector::remove_inspector_plugin(const Ref<EditorInspectorPlugin> &
for (int i = idx; i < inspector_plugin_count - 1; i++) {
inspector_plugins[i] = inspector_plugins[i + 1];
}
if (idx == inspector_plugin_count - 1)
inspector_plugins[idx] = Ref<EditorInspectorPlugin>();
inspector_plugin_count--;
}