You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-02 19:01:36 +00:00
Unify and streamline connecting to Resource changes
This commit is contained in:
@@ -133,7 +133,7 @@ void GradientTexture2DEdit::gui_input(const Ref<InputEvent> &p_event) {
|
||||
|
||||
void GradientTexture2DEdit::set_texture(Ref<GradientTexture2D> &p_texture) {
|
||||
texture = p_texture;
|
||||
texture->connect("changed", callable_mp((CanvasItem *)this, &CanvasItem::queue_redraw));
|
||||
texture->connect_changed(callable_mp((CanvasItem *)this, &CanvasItem::queue_redraw));
|
||||
}
|
||||
|
||||
void GradientTexture2DEdit::set_snap_enabled(bool p_snap_enabled) {
|
||||
|
||||
Reference in New Issue
Block a user