1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

[GDExtension] Fix _property_can_revert and _property_get_revert methods using incorrect string type.

This commit is contained in:
bruvzg
2022-08-22 12:43:14 +03:00
parent 14f8a54a33
commit 56101080cc
3 changed files with 6 additions and 6 deletions

View File

@@ -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) {