Unify and streamline connecting to Resource changes

This commit is contained in:
kobewi committed 2023-07-17 19:35:57 +02:00
1 parent 2c55214068
commit de4a3fa151
98 files changed
+341 -434

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@
void GradientEditor::set_gradient(const Ref<Gradient> &p_gradient) {
gradient = p_gradient;
connect("ramp_changed", callable_mp(this, &GradientEditor::_ramp_changed));
gradient->connect("changed", callable_mp(this, &GradientEditor::_gradient_changed));
gradient->connect_changed(callable_mp(this, &GradientEditor::_gradient_changed));
set_points(gradient->get_points());
set_interpolation_mode(gradient->get_interpolation_mode());
set_interpolation_color_space(gradient->get_interpolation_color_space());