You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +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:
@@ -36,7 +36,7 @@ bool StyleBoxPreview::grid_preview_enabled = true;
|
||||
|
||||
void StyleBoxPreview::_grid_preview_toggled(bool p_active) {
|
||||
grid_preview_enabled = p_active;
|
||||
preview->update();
|
||||
preview->queue_redraw();
|
||||
}
|
||||
|
||||
bool EditorInspectorPluginStyleBox::can_handle(Object *p_object) {
|
||||
@@ -66,7 +66,7 @@ void StyleBoxPreview::edit(const Ref<StyleBox> &p_stylebox) {
|
||||
}
|
||||
|
||||
void StyleBoxPreview::_sb_changed() {
|
||||
preview->update();
|
||||
preview->queue_redraw();
|
||||
}
|
||||
|
||||
void StyleBoxPreview::_notification(int p_what) {
|
||||
|
||||
Reference in New Issue
Block a user