mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 22:21:18 +00:00
Remove redundant Variant-types initializations
This commit is contained in:
parent
963ffd8b94
commit
3b14f0334c
52 changed files with 118 additions and 118 deletions
|
|
@ -816,7 +816,7 @@ Vector2 ControlEditorToolbar::_position_to_anchor(const Control *p_control, Vect
|
|||
|
||||
Rect2 parent_rect = p_control->get_parent_anchorable_rect();
|
||||
|
||||
Vector2 output = Vector2();
|
||||
Vector2 output;
|
||||
if (p_control->is_layout_rtl()) {
|
||||
output.x = (parent_rect.size.x == 0) ? 0.0 : (parent_rect.size.x - p_control->get_transform().xform(position).x - parent_rect.position.x) / parent_rect.size.x;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue