You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-18 14:21:41 +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
@@ -302,8 +302,8 @@ void GradientEdit::_gui_input(const Ref<InputEvent> &p_event) {
|
||||
void GradientEdit::_notification(int p_what) {
|
||||
|
||||
if (p_what == NOTIFICATION_ENTER_TREE) {
|
||||
if (!picker->is_connected("color_changed", this, "_color_changed")) {
|
||||
picker->connect("color_changed", this, "_color_changed");
|
||||
if (!picker->is_connected_compat("color_changed", this, "_color_changed")) {
|
||||
picker->connect_compat("color_changed", this, "_color_changed");
|
||||
}
|
||||
}
|
||||
if (p_what == NOTIFICATION_DRAW) {
|
||||
|
||||
Reference in New Issue
Block a user