Skip to content

Commit 47f11bc

Browse files
authored
Merge pull request godotengine#1666 from raulsntos/set_class_icon
Add a method to set the class icon
2 parents 27ffd8c + 2fd3a80 commit 47f11bc

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

gdextension/gdextension_interface.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ typedef struct {
368368
GDExtensionBool is_abstract;
369369
GDExtensionBool is_exposed;
370370
GDExtensionBool is_runtime;
371+
GDExtensionConstStringPtr icon_path;
371372
GDExtensionClassSet set_func;
372373
GDExtensionClassGet get_func;
373374
GDExtensionClassGetPropertyList get_property_list_func;

include/godot_cpp/core/class_db.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ void ClassDB::_register_class(bool p_virtual, bool p_exposed, bool p_runtime) {
251251
is_abstract, // GDExtensionBool is_abstract;
252252
p_exposed, // GDExtensionBool is_exposed;
253253
p_runtime, // GDExtensionBool is_runtime;
254+
nullptr, // GDExtensionConstStringPtr icon_path;
254255
T::set_bind, // GDExtensionClassSet set_func;
255256
T::get_bind, // GDExtensionClassGet get_func;
256257
T::has_get_property_list() ? T::get_property_list_bind : nullptr, // GDExtensionClassGetPropertyList get_property_list_func;

0 commit comments

Comments
 (0)