| 48 | } |
| 49 | |
| 50 | inline ResourceUID::ID get_uid_for_ext_resource(const Ref<Resource> &p_resource) { |
| 51 | Ref<ResourceInfo> compat = ResourceInfo::get_info_from_resource(p_resource); |
| 52 | if (compat.is_valid()) { |
| 53 | return compat->uid; |
| 54 | } |
| 55 | if (GDRESettings::get_singleton()) { |
| 56 | return GDRESettings::get_singleton()->get_uid_for_path(p_resource->get_path()); |
| 57 | } |
| 58 | return ResourceUID::INVALID_ID; |
| 59 | } |
| 60 | |
| 61 | /// |
| 62 |
no test coverage detected