diff options
author | kobewi <kobewi4e@gmail.com> | 2022-07-20 23:44:06 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2023-05-12 19:28:34 +0200 |
commit | 27dccf1b5e4ffe2f499407026f0b789491335582 (patch) | |
tree | a8ccaa66e78d2f63b582ad38171c00fd2ae62a2c /editor/editor_resource_preview.cpp | |
parent | 20ed51a9129f97bb8d001262155fb3ccfc1e3c89 (diff) | |
download | redot-engine-27dccf1b5e4ffe2f499407026f0b789491335582.tar.gz |
Enhance filesystem dock tooltips
Diffstat (limited to 'editor/editor_resource_preview.cpp')
-rw-r--r-- | editor/editor_resource_preview.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/editor_resource_preview.cpp b/editor/editor_resource_preview.cpp index 7dea1a7e01..45a100a4e5 100644 --- a/editor/editor_resource_preview.cpp +++ b/editor/editor_resource_preview.cpp @@ -198,9 +198,9 @@ void EditorResourcePreview::_generate_preview(Ref<ImageTexture> &r_texture, Ref< } } -Variant EditorResourcePreview::get_preview_metadata(const String &p_path, const String &p_meta) const { - ERR_FAIL_COND_V(!cache.has(p_path), Variant()); - return cache[p_path].preview_metadata.get(p_meta, Variant()); +const Dictionary EditorResourcePreview::get_preview_metadata(const String &p_path) const { + ERR_FAIL_COND_V(!cache.has(p_path), Dictionary()); + return cache[p_path].preview_metadata; } void EditorResourcePreview::_iterate() { |