You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Reworked signal connection system, added support for Callable and Signal objects and made them default.
This commit is contained in:
committed by
Juan Linietsky
parent
1a4be2cd8f
commit
69c95f4b4c
@@ -69,8 +69,8 @@ void GradientEditor::_bind_methods() {
|
||||
|
||||
void GradientEditor::set_gradient(const Ref<Gradient> &p_gradient) {
|
||||
gradient = p_gradient;
|
||||
connect("ramp_changed", this, "_ramp_changed");
|
||||
gradient->connect("changed", this, "_gradient_changed");
|
||||
connect_compat("ramp_changed", this, "_ramp_changed");
|
||||
gradient->connect_compat("changed", this, "_gradient_changed");
|
||||
set_points(gradient->get_points());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user