mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fixed members overview Index p_index out of size (2.1), issue 12189
This commit is contained in:
parent
8befa3dd2f
commit
55cd92aacd
1 changed files with 10 additions and 0 deletions
|
|
@ -2001,6 +2001,11 @@ struct _ScriptEditorItemData {
|
||||||
};
|
};
|
||||||
|
|
||||||
void ScriptEditor::_update_members_overview_visibility() {
|
void ScriptEditor::_update_members_overview_visibility() {
|
||||||
|
int selected = tab_container->get_current_tab();
|
||||||
|
if (selected < 0 || selected >= tab_container->get_child_count()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (members_overview_enabled) {
|
if (members_overview_enabled) {
|
||||||
members_overview->set_hidden(false);
|
members_overview->set_hidden(false);
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -2011,6 +2016,11 @@ void ScriptEditor::_update_members_overview_visibility() {
|
||||||
void ScriptEditor::_update_members_overview() {
|
void ScriptEditor::_update_members_overview() {
|
||||||
members_overview->clear();
|
members_overview->clear();
|
||||||
|
|
||||||
|
int selected = tab_container->get_current_tab();
|
||||||
|
if (selected < 0 || selected >= tab_container->get_child_count()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (tab_container->get_child_count() <= 0)
|
if (tab_container->get_child_count() <= 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue