1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-30 16:26:50 +00:00

Merge pull request #102729 from akien-mga/create-node-crash-renamed-class

EditorHelpBit: Workaround crash renaming named class inheriting `@tool` class
This commit is contained in:
Thaddeus Crews
2025-02-13 10:15:27 -06:00

View File

@@ -1017,7 +1017,8 @@ void EditorHelp::_update_doc() {
class_desc->add_text(nbsp); // Otherwise icon borrows hyperlink from `_add_type()`.
_add_type(inherits);
inherits = doc->class_list[inherits].inherits;
const DocData::ClassDoc *base_class_doc = doc->class_list.getptr(inherits);
inherits = base_class_doc ? base_class_doc->inherits : String();
if (!inherits.is_empty()) {
class_desc->add_text(" < ");
@@ -3713,7 +3714,8 @@ void EditorHelpBit::_update_labels() {
_add_type_to_title({ inherits, String(), false });
inherits = class_list[inherits].inherits;
const DocData::ClassDoc *base_class_doc = class_list.getptr(inherits);
inherits = base_class_doc ? base_class_doc->inherits : String();
}
title->pop(); // font_size