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

Add metadata to resource previews

This commit is contained in:
kobewi
2022-08-19 18:14:57 +02:00
parent 74c34aed38
commit 04317e9ced
7 changed files with 108 additions and 87 deletions

View File

@@ -142,7 +142,7 @@ class CurvePreviewGenerator : public EditorResourcePreviewGenerator {
public:
virtual bool handles(const String &p_type) const override;
virtual Ref<Texture2D> generate(const Ref<Resource> &p_from, const Size2 &p_size) const override;
virtual Ref<Texture2D> generate(const Ref<Resource> &p_from, const Size2 &p_size, Dictionary &p_metadata) const override;
};
#endif // CURVE_EDITOR_PLUGIN_H