mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-24 18:17:21 +01:00
Fix compile.
This commit is contained in:
parent
0097a77afd
commit
182dbce670
@ -239,12 +239,12 @@ void EditorHelp::_add_type(const String &p_type, const String &p_enum) {
|
|||||||
|
|
||||||
void EditorHelp::_add_type_icon(const String &p_type, int p_size) {
|
void EditorHelp::_add_type_icon(const String &p_type, int p_size) {
|
||||||
Ref<Texture> icon;
|
Ref<Texture> icon;
|
||||||
if (has_icon(p_type, "EditorIcons")) {
|
if (has_theme_icon(p_type, "EditorIcons")) {
|
||||||
icon = get_icon(p_type, "EditorIcons");
|
icon = get_theme_icon(p_type, "EditorIcons");
|
||||||
} else if (ClassDB::class_exists(p_type) && ClassDB::is_parent_class(p_type, "Object")) {
|
} else if (ClassDB::class_exists(p_type) && ClassDB::is_parent_class(p_type, "Object")) {
|
||||||
icon = get_icon("Object", "EditorIcons");
|
icon = get_theme_icon("Object", "EditorIcons");
|
||||||
} else {
|
} else {
|
||||||
icon = get_icon("ArrowRight", "EditorIcons");
|
icon = get_theme_icon("ArrowRight", "EditorIcons");
|
||||||
}
|
}
|
||||||
|
|
||||||
Vector2i size = Vector2i(icon->get_width(), icon->get_height());
|
Vector2i size = Vector2i(icon->get_width(), icon->get_height());
|
||||||
|
Loading…
Reference in New Issue
Block a user