diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-29 16:49:14 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-29 16:49:14 +0100 |
commit | e7d14d241bae5e9d88718411da59a60e2919a11f (patch) | |
tree | 0bfcede2d43640ab67fece0e874f0e0ba7cd5414 /core | |
parent | e16acf26db0fbeb3c6b1a4fa0c0cd2021e33c413 (diff) | |
parent | 2c576eb2814e684c18c9995d8f276d24418332f9 (diff) |
Merge pull request #69339 from Faless/fix/4.x_resource_name_is_string
[Core] Fix Resource.resource_name type.
Diffstat (limited to 'core')
-rw-r--r-- | core/io/resource.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/resource.cpp b/core/io/resource.cpp index ab30fb1ca3..be75ad7e25 100644 --- a/core/io/resource.cpp +++ b/core/io/resource.cpp @@ -436,7 +436,7 @@ void Resource::_bind_methods() { ADD_GROUP("Resource", "resource_"); ADD_PROPERTY(PropertyInfo(Variant::BOOL, "resource_local_to_scene"), "set_local_to_scene", "is_local_to_scene"); ADD_PROPERTY(PropertyInfo(Variant::STRING, "resource_path", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_EDITOR), "set_path", "get_path"); - ADD_PROPERTY(PropertyInfo(Variant::STRING_NAME, "resource_name"), "set_name", "get_name"); + ADD_PROPERTY(PropertyInfo(Variant::STRING, "resource_name"), "set_name", "get_name"); MethodInfo get_rid_bind("_get_rid"); get_rid_bind.return_val.type = Variant::RID; |