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:
@ -182,7 +182,7 @@ void SpriteFramesEditor::_sheet_preview_input(const Ref<InputEvent> &p_event) {
|
||||
|
||||
if (last_frame_selected != idx || idx != -1) {
|
||||
last_frame_selected = idx;
|
||||
split_sheet_preview->update();
|
||||
split_sheet_preview->queue_redraw();
|
||||
}
|
||||
}
|
||||
|
||||
@ -208,7 +208,7 @@ void SpriteFramesEditor::_sheet_preview_input(const Ref<InputEvent> &p_event) {
|
||||
}
|
||||
|
||||
last_frame_selected = idx;
|
||||
split_sheet_preview->update();
|
||||
split_sheet_preview->queue_redraw();
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -307,7 +307,7 @@ void SpriteFramesEditor::_sheet_select_clear_all_frames() {
|
||||
frames_selected.clear();
|
||||
}
|
||||
|
||||
split_sheet_preview->update();
|
||||
split_sheet_preview->queue_redraw();
|
||||
}
|
||||
|
||||
void SpriteFramesEditor::_sheet_spin_changed(double p_value, int p_dominant_param) {
|
||||
@ -363,7 +363,7 @@ void SpriteFramesEditor::_sheet_spin_changed(double p_value, int p_dominant_para
|
||||
|
||||
frames_selected.clear();
|
||||
last_frame_selected = -1;
|
||||
split_sheet_preview->update();
|
||||
split_sheet_preview->queue_redraw();
|
||||
}
|
||||
|
||||
void SpriteFramesEditor::_prepare_sprite_sheet(const String &p_file) {
|
||||
|
||||
Reference in New Issue
Block a user