mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 15:21:56 -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) {
|
void EditorInspector::remove_inspector_plugin(const Ref<EditorInspectorPlugin> &p_plugin) {
|
||||||
ERR_FAIL_COND(inspector_plugin_count == MAX_PLUGINS);
|
|
||||||
|
|
||||||
int idx = -1;
|
int idx = -1;
|
||||||
for (int i = 0; i < inspector_plugin_count; i++) {
|
for (int i = 0; i < inspector_plugin_count; i++) {
|
||||||
if (inspector_plugins[i] == p_plugin) {
|
if (inspector_plugins[i] == p_plugin) {
|
||||||
|
|||||||
Reference in New Issue
Block a user