You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +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:
@@ -51,7 +51,7 @@ void ReferenceRect::set_border_color(const Color &p_color) {
|
||||
}
|
||||
|
||||
border_color = p_color;
|
||||
update();
|
||||
queue_redraw();
|
||||
}
|
||||
|
||||
Color ReferenceRect::get_border_color() const {
|
||||
@@ -65,7 +65,7 @@ void ReferenceRect::set_border_width(float p_width) {
|
||||
}
|
||||
|
||||
border_width = width_max;
|
||||
update();
|
||||
queue_redraw();
|
||||
}
|
||||
|
||||
float ReferenceRect::get_border_width() const {
|
||||
@@ -78,7 +78,7 @@ void ReferenceRect::set_editor_only(const bool &p_enabled) {
|
||||
}
|
||||
|
||||
editor_only = p_enabled;
|
||||
update();
|
||||
queue_redraw();
|
||||
}
|
||||
|
||||
bool ReferenceRect::get_editor_only() const {
|
||||
|
||||
Reference in New Issue
Block a user