mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 19:11:33 +00:00
Rename Vector2.tangent() to Vector2.orthogonal()
This commit is contained in:
parent
d834789f47
commit
a24c38d1a8
21 changed files with 42 additions and 42 deletions
|
|
@ -177,7 +177,7 @@ void TextureRegionEditor::_region_draw() {
|
|||
}
|
||||
|
||||
ofs = (endpoints[next] - endpoints[i]) / 2;
|
||||
ofs += (endpoints[next] - endpoints[i]).tangent().normalized() * (select_handle->get_size().width / 2);
|
||||
ofs += (endpoints[next] - endpoints[i]).orthogonal().normalized() * (select_handle->get_size().width / 2);
|
||||
|
||||
if (snap_mode != SNAP_AUTOSLICE) {
|
||||
edit_draw->draw_texture(select_handle, (endpoints[i] + ofs - (select_handle->get_size() / 2)).floor() - draw_ofs * draw_zoom);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue