1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-20 14:45:44 +00:00

Fix script editor errors with CustomCallables

This commit is contained in:
kobewi
2022-02-06 19:02:53 +01:00
parent 95719930a8
commit a08fc442a0
6 changed files with 39 additions and 8 deletions

View File

@@ -51,6 +51,14 @@ protected:
void _setup(uint32_t *p_base_ptr, uint32_t p_ptr_size);
public:
virtual StringName get_method() const {
#ifdef DEBUG_METHODS_ENABLED
return StringName(text);
#else
return StringName();
#endif
}
#ifdef DEBUG_METHODS_ENABLED
void set_text(const char *p_text) {
text = p_text;