Skip to content

Commit bbd7c9b

Browse files
committed
Fix can't remove inspector plugins after reaching max count
1 parent 53be3b7 commit bbd7c9b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

editor/inspector/editor_inspector.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3475,8 +3475,6 @@ void EditorInspector::add_inspector_plugin(const Ref<EditorInspectorPlugin> &p_p
34753475
}
34763476

34773477
void EditorInspector::remove_inspector_plugin(const Ref<EditorInspectorPlugin> &p_plugin) {
3478-
ERR_FAIL_COND(inspector_plugin_count == MAX_PLUGINS);
3479-
34803478
int idx = -1;
34813479
for (int i = 0; i < inspector_plugin_count; i++) {
34823480
if (inspector_plugins[i] == p_plugin) {

0 commit comments

Comments
 (0)