From e4ef99abc4253aa32b26810340740ef243081800 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sun, 12 Jun 2022 15:25:33 +0200 Subject: [PATCH] An another touchup. --- .../material_maker/editor/widgets/curve_edit/slope_point.cpp | 2 +- .../material_maker/editor/widgets/curve_edit/slope_point.h | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/material_maker/editor/widgets/curve_edit/slope_point.cpp b/modules/material_maker/editor/widgets/curve_edit/slope_point.cpp index 9a72f127c..ce650c8f0 100644 --- a/modules/material_maker/editor/widgets/curve_edit/slope_point.cpp +++ b/modules/material_maker/editor/widgets/curve_edit/slope_point.cpp @@ -17,7 +17,7 @@ void SlopePoint::set_moving(const bool val) { moving = val; } -void SlopePoint::_on_ControlPoint_gui_input(const Variant &event) { +void SlopePoint::_on_ControlPoint_gui_input(const Ref &event) { Ref iemb = event; Ref iemm = event; diff --git a/modules/material_maker/editor/widgets/curve_edit/slope_point.h b/modules/material_maker/editor/widgets/curve_edit/slope_point.h index aba080fba..757e43a6b 100644 --- a/modules/material_maker/editor/widgets/curve_edit/slope_point.h +++ b/modules/material_maker/editor/widgets/curve_edit/slope_point.h @@ -1,6 +1,9 @@ #ifndef SLOPE_POINT_H #define SLOPE_POINT_H +#include "core/math/vector2.h" +#include "core/os/input_event.h" + #include "scene/gui/control.h" class SlopePoint : public Control { @@ -13,7 +16,7 @@ public: Variant get_moving(); void set_moving(const bool val); - void _on_ControlPoint_gui_input(const Variant &event); + void _on_ControlPoint_gui_input(const Ref &event); SlopePoint(); ~SlopePoint();