You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Unify and streamline connecting to Resource changes
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user