CurveEdit needs to inherit from Button.

This commit is contained in:
Relintai 2022-06-15 20:30:11 +02:00
parent 0ee27d830b
commit 59baf2088f

View File

@ -1,13 +1,13 @@
#ifndef CURVE_EDIT_H #ifndef CURVE_EDIT_H
#define CURVE_EDIT_H #define CURVE_EDIT_H
#include "scene/gui/control.h" #include "scene/gui/button.h"
class CurveView; class CurveView;
class CurveBase; class CurveBase;
class CurveEdit : public Control { class CurveEdit : public Button {
GDCLASS(CurveEdit, Control); GDCLASS(CurveEdit, Button);
public: public:
Ref<CurveBase> get_value(); Ref<CurveBase> get_value();