From c39cfd2c05fdafb9842e424d310df5727e4ae70f Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 17 Jun 2022 13:11:18 +0200 Subject: [PATCH] _curve_changed is now virtual, and curve_changed uses call() to invoke it. --- modules/material_maker/nodes/bases/curve_base.cpp | 2 +- modules/material_maker/nodes/bases/curve_base.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/material_maker/nodes/bases/curve_base.cpp b/modules/material_maker/nodes/bases/curve_base.cpp index 52e9380e6..bf2400fab 100644 --- a/modules/material_maker/nodes/bases/curve_base.cpp +++ b/modules/material_maker/nodes/bases/curve_base.cpp @@ -162,7 +162,7 @@ void CurveBase::set_points(const Vector &arr, const bool notif } void CurveBase::curve_changed() { - _curve_changed(); + call("_curve_changed"); } void CurveBase::_curve_changed() { diff --git a/modules/material_maker/nodes/bases/curve_base.h b/modules/material_maker/nodes/bases/curve_base.h index 857a7229f..e230d3951 100644 --- a/modules/material_maker/nodes/bases/curve_base.h +++ b/modules/material_maker/nodes/bases/curve_base.h @@ -59,7 +59,7 @@ public: void set_points(const Vector &arr, const bool notify = true); void curve_changed(); - void _curve_changed(); + virtual void _curve_changed(); CurveBase(); ~CurveBase();