You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +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
@@ -184,11 +184,11 @@ void NoiseTexture::set_noise(Ref<OpenSimplexNoise> p_noise) {
|
||||
if (p_noise == noise)
|
||||
return;
|
||||
if (noise.is_valid()) {
|
||||
noise->disconnect(CoreStringNames::get_singleton()->changed, this, "_queue_update");
|
||||
noise->disconnect_compat(CoreStringNames::get_singleton()->changed, this, "_queue_update");
|
||||
}
|
||||
noise = p_noise;
|
||||
if (noise.is_valid()) {
|
||||
noise->connect(CoreStringNames::get_singleton()->changed, this, "_queue_update");
|
||||
noise->connect_compat(CoreStringNames::get_singleton()->changed, this, "_queue_update");
|
||||
}
|
||||
_queue_update();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user