You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +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:
@@ -182,27 +182,27 @@ void BoneTransformEditor::_update_properties() {
|
||||
if (split[2] == "enabled") {
|
||||
enabled_checkbox->set_read_only(E.usage & PROPERTY_USAGE_READ_ONLY);
|
||||
enabled_checkbox->update_property();
|
||||
enabled_checkbox->update();
|
||||
enabled_checkbox->queue_redraw();
|
||||
}
|
||||
if (split[2] == "position") {
|
||||
position_property->set_read_only(E.usage & PROPERTY_USAGE_READ_ONLY);
|
||||
position_property->update_property();
|
||||
position_property->update();
|
||||
position_property->queue_redraw();
|
||||
}
|
||||
if (split[2] == "rotation") {
|
||||
rotation_property->set_read_only(E.usage & PROPERTY_USAGE_READ_ONLY);
|
||||
rotation_property->update_property();
|
||||
rotation_property->update();
|
||||
rotation_property->queue_redraw();
|
||||
}
|
||||
if (split[2] == "scale") {
|
||||
scale_property->set_read_only(E.usage & PROPERTY_USAGE_READ_ONLY);
|
||||
scale_property->update_property();
|
||||
scale_property->update();
|
||||
scale_property->queue_redraw();
|
||||
}
|
||||
if (split[2] == "rest") {
|
||||
rest_matrix->set_read_only(E.usage & PROPERTY_USAGE_READ_ONLY);
|
||||
rest_matrix->update_property();
|
||||
rest_matrix->update();
|
||||
rest_matrix->queue_redraw();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user