Skip to content

Commit bb4763e

Browse files
committed
Merge pull request #108377 from timothyqiu/inspector-plugin-full
Fix can't remove inspector plugins after reaching max count
2 parents 5699180 + bbd7c9b commit bb4763e

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
@@ -3476,8 +3476,6 @@ void EditorInspector::add_inspector_plugin(const Ref<EditorInspectorPlugin> &p_p
34763476
}
34773477

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

0 commit comments

Comments
 (0)