mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Fix can't remove inspector plugins after reaching max count
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user