You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-28 16:07:14 +00:00
Rename CanvasItem.update() to queue_redraw()
Affects a lot of classes. Very thoroughly checked signal connections and deferred calls to this method, add_do_method/add_undo_method calls, and so on. Also renames the internal `_update_callback()` to `_redraw_callback()` for consistency. Just a few comments have also been changed to say "redraw". In CPUParticles2D, there was a private variable with the same name. It has been renamed to `do_redraw`.
This commit is contained in:
@@ -46,7 +46,7 @@ void Range::_value_changed(double p_value) {
|
||||
void Range::_value_changed_notify() {
|
||||
_value_changed(shared->val);
|
||||
emit_signal(SNAME("value_changed"), shared->val);
|
||||
update();
|
||||
queue_redraw();
|
||||
}
|
||||
|
||||
void Range::Shared::emit_value_changed() {
|
||||
@@ -61,7 +61,7 @@ void Range::Shared::emit_value_changed() {
|
||||
|
||||
void Range::_changed_notify(const char *p_what) {
|
||||
emit_signal(SNAME("changed"));
|
||||
update();
|
||||
queue_redraw();
|
||||
}
|
||||
|
||||
void Range::_validate_values() {
|
||||
|
||||
Reference in New Issue
Block a user