mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 14:11:15 +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:
parent
e60086f98b
commit
e31bb5ffeb
111 changed files with 1354 additions and 1354 deletions
|
|
@ -53,7 +53,7 @@ void Texture3DEditor::_texture_changed() {
|
|||
if (!is_visible()) {
|
||||
return;
|
||||
}
|
||||
update();
|
||||
queue_redraw();
|
||||
}
|
||||
|
||||
void Texture3DEditor::_update_material() {
|
||||
|
|
@ -124,7 +124,7 @@ void Texture3DEditor::edit(Ref<Texture3D> p_texture) {
|
|||
}
|
||||
|
||||
texture->connect("changed", callable_mp(this, &Texture3DEditor::_texture_changed));
|
||||
update();
|
||||
queue_redraw();
|
||||
texture_rect->set_material(material);
|
||||
setting = true;
|
||||
layer->set_max(texture->get_depth() - 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue