mirror of https://github.com/godotengine/godot
Fix can't remove inspector plugins after reaching max count
This commit is contained in:
parent
53be3b78d1
commit
bbd7c9b5f2
|
|
@ -3475,8 +3475,6 @@ void EditorInspector::add_inspector_plugin(const Ref<EditorInspectorPlugin> &p_p
|
|||
}
|
||||
|
||||
void EditorInspector::remove_inspector_plugin(const Ref<EditorInspectorPlugin> &p_plugin) {
|
||||
ERR_FAIL_COND(inspector_plugin_count == MAX_PLUGINS);
|
||||
|
||||
int idx = -1;
|
||||
for (int i = 0; i < inspector_plugin_count; i++) {
|
||||
if (inspector_plugins[i] == p_plugin) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue