mirror of
https://github.com/godotengine/godot.git
synced 2024-12-09 10:09:20 +08:00
Merge pull request #55658 from timothyqiu/remove-inspector-plugin
Fix `EditorPlugin.remove_inspector_plugin()` instance cleanup
This commit is contained in:
commit
0c92edddc1
@ -2194,10 +2194,7 @@ 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_plugins[inspector_plugin_count - 1] = Ref<EditorInspectorPlugin>();
|
||||
|
||||
inspector_plugin_count--;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user