aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins/curve_editor_plugin.h
diff options
context:
space:
mode:
authorMarc Gilleron2017-07-02 01:46:44 +0200
committerMarc Gilleron2017-07-02 01:52:47 +0200
commitc4564233a8080a8213d86202fd655db2c9e9f40f (patch)
tree75c84f0fdc59cfc82e2004547f552b11fa8ea4ab /editor/plugins/curve_editor_plugin.h
parent0ffb70f0bbfa14d9201b4349ac23911450b9d6b2 (diff)
downloadgodot-c4564233a8080a8213d86202fd655db2c9e9f40f.tar.gz
godot-c4564233a8080a8213d86202fd655db2c9e9f40f.tar.zst
godot-c4564233a8080a8213d86202fd655db2c9e9f40f.zip
Diffstat (limited to 'editor/plugins/curve_editor_plugin.h')
-rw-r--r--editor/plugins/curve_editor_plugin.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/editor/plugins/curve_editor_plugin.h b/editor/plugins/curve_editor_plugin.h
index a4952dfb2..040c298a9 100644
--- a/editor/plugins/curve_editor_plugin.h
+++ b/editor/plugins/curve_editor_plugin.h
@@ -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