mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 09:01:32 +00:00
Unify and streamline connecting to Resource changes
This commit is contained in:
parent
2c55214068
commit
de4a3fa151
98 changed files with 341 additions and 434 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue