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:
@@ -61,7 +61,7 @@ void MeshInstance2D::_bind_methods() {
|
||||
|
||||
void MeshInstance2D::set_mesh(const Ref<Mesh> &p_mesh) {
|
||||
mesh = p_mesh;
|
||||
update();
|
||||
queue_redraw();
|
||||
}
|
||||
|
||||
Ref<Mesh> MeshInstance2D::get_mesh() const {
|
||||
@@ -73,13 +73,13 @@ void MeshInstance2D::set_texture(const Ref<Texture2D> &p_texture) {
|
||||
return;
|
||||
}
|
||||
texture = p_texture;
|
||||
update();
|
||||
queue_redraw();
|
||||
emit_signal(SceneStringNames::get_singleton()->texture_changed);
|
||||
}
|
||||
|
||||
void MeshInstance2D::set_normal_map(const Ref<Texture2D> &p_texture) {
|
||||
normal_map = p_texture;
|
||||
update();
|
||||
queue_redraw();
|
||||
}
|
||||
|
||||
Ref<Texture2D> MeshInstance2D::get_normal_map() const {
|
||||
|
||||
Reference in New Issue
Block a user