diff options
author | George Marques <george@gmarqu.es> | 2021-02-04 09:54:09 -0300 |
---|---|---|
committer | George Marques <george@gmarqu.es> | 2021-02-04 09:54:09 -0300 |
commit | 3f4d60616e91cc22b8e51a3bde0a6a6218771670 (patch) | |
tree | ff56998ca909034ac907d53bfd79d8b413cd6297 | |
parent | bcf1617755769d13c640348d718c4042b8b06d6e (diff) |
Make SyntaxHighligher::_clear_highlighting_cache virtual
Since it's meant to be used as a virtual method.
-rw-r--r-- | scene/resources/syntax_highlighter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scene/resources/syntax_highlighter.cpp b/scene/resources/syntax_highlighter.cpp index 1f5798c00a..56dbcb95a7 100644 --- a/scene/resources/syntax_highlighter.cpp +++ b/scene/resources/syntax_highlighter.cpp @@ -115,9 +115,8 @@ void SyntaxHighlighter::_bind_methods() { ClassDB::bind_method(D_METHOD("clear_highlighting_cache"), &SyntaxHighlighter::clear_highlighting_cache); ClassDB::bind_method(D_METHOD("get_text_edit"), &SyntaxHighlighter::get_text_edit); - ClassDB::bind_method(D_METHOD("_clear_highlighting_cache"), &SyntaxHighlighter::_clear_highlighting_cache); - BIND_VMETHOD(MethodInfo(Variant::DICTIONARY, "_get_line_syntax_highlighting", PropertyInfo(Variant::INT, "p_line"))); + BIND_VMETHOD(MethodInfo("_clear_highlighting_cache")); BIND_VMETHOD(MethodInfo("_update_cache")); } |