summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-09-15 18:04:46 +0200
committerGitHub <noreply@github.com>2020-09-15 18:04:46 +0200
commit7f0352b4d10f87b50b732d120449349041501d03 (patch)
tree85a01b34c52442483a67d15a12bbd6ec1ce71364
parent7f24914b9e7f709b000b9e5ef9cb8eb3aaf100db (diff)
parentcfead57d1dcec669b9c4354d0b48c71281e0e26f (diff)
Merge pull request #42093 from Xrayez/virtual-to_string
Make `Object::to_string` virtual
-rw-r--r--core/object.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/object.h b/core/object.h
index f9a12da8f6..12ef600dfc 100644
--- a/core/object.h
+++ b/core/object.h
@@ -658,7 +658,7 @@ public:
Variant call(const StringName &p_name, VARIANT_ARG_LIST); // C++ helper
void notification(int p_notification, bool p_reversed = false);
- String to_string();
+ virtual String to_string();
//used mainly by script, get and set all INCLUDING string
virtual Variant getvar(const Variant &p_key, bool *r_valid = nullptr) const;