You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Rename Vector2.tangent() to Vector2.orthogonal()
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user