diff options
author | Ignacio Roldán Etcheverry <neikeq@users.noreply.github.com> | 2020-03-17 18:38:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-17 18:38:44 +0100 |
commit | 989a223c5a6d6ba5b1b098be8983888cb49b2525 (patch) | |
tree | c711ecab3dd3cf03c6305af491194284735871ec /core/callable.cpp | |
parent | 6c74f38f0b79930ede23d3c15423f17947757534 (diff) | |
parent | 6a85cdf640d735b1ca8216b4c6e16fb949f4d183 (diff) |
Merge pull request #37050 from neikeq/fix-mono-after-vulkan-merge
Fix C# bindings after recent breaking changes
Diffstat (limited to 'core/callable.cpp')
-rw-r--r-- | core/callable.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/callable.cpp b/core/callable.cpp index 4a5ae3a248..2bb9ab167b 100644 --- a/core/callable.cpp +++ b/core/callable.cpp @@ -78,6 +78,12 @@ StringName Callable::get_method() const { return method; } +CallableCustom *Callable::get_custom() const { + ERR_FAIL_COND_V_MSG(!is_custom(), NULL, + vformat("Can't get custom on non-CallableCustom \"%s\".", operator String())); + return custom; +} + uint32_t Callable::hash() const { if (is_custom()) { return custom->hash(); |