summaryrefslogtreecommitdiffstats
path: root/core/object/object.cpp
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2022-08-22 12:43:14 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2022-08-23 14:58:28 +0300
commit56101080cc05f6eb2fc782f6443c99f0669d00f6 (patch)
tree5f34eb7c9daac68fc97a3009471d783b6d2b0c0e /core/object/object.cpp
parent14f8a54a3371df91327dbe2fc52c42a3616fcab0 (diff)
downloadredot-engine-56101080cc05f6eb2fc782f6443c99f0669d00f6.tar.gz
[GDExtension] Fix `_property_can_revert` and `_property_get_revert` methods using incorrect string type.
Diffstat (limited to 'core/object/object.cpp')
-rw-r--r--core/object/object.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/object/object.cpp b/core/object/object.cpp
index 5203685c7f..c75c36be4b 100644
--- a/core/object/object.cpp
+++ b/core/object/object.cpp
@@ -519,7 +519,7 @@ void Object::validate_property(PropertyInfo &p_property) const {
_validate_propertyv(p_property);
}
-bool Object::property_can_revert(const String &p_name) const {
+bool Object::property_can_revert(const StringName &p_name) const {
if (script_instance) {
if (script_instance->property_can_revert(p_name)) {
return true;
@@ -543,7 +543,7 @@ bool Object::property_can_revert(const String &p_name) const {
return _property_can_revertv(p_name);
}
-Variant Object::property_get_revert(const String &p_name) const {
+Variant Object::property_get_revert(const StringName &p_name) const {
Variant ret;
if (script_instance) {