1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-23 15:16:17 +00:00

Added Curve preview thumbnail

This commit is contained in:
Marc Gilleron
2017-07-02 01:46:44 +02:00
parent 0ffb70f0bb
commit c4564233a8
2 changed files with 80 additions and 0 deletions

View File

@@ -143,4 +143,11 @@ private:
ToolButton *_toggle_button;
};
class CurvePreviewGenerator : public EditorResourcePreviewGenerator {
GDCLASS(CurvePreviewGenerator, EditorResourcePreviewGenerator)
public:
bool handles(const String &p_type) const;
Ref<Texture> generate(const Ref<Resource> &p_from);
};
#endif // CURVE_EDITOR_PLUGIN_H