Merge pull request #60727 from aaronfranke/basis-axis-column
This commit is contained in:
commit
1b2992799b
50 changed files with 285 additions and 305 deletions
|
|
@ -1827,7 +1827,7 @@ Error ArrayMesh::lightmap_unwrap_cached(const Transform3D &p_base_transform, flo
|
|||
|
||||
// Keep only the scale
|
||||
Basis basis = p_base_transform.get_basis();
|
||||
Vector3 scale = Vector3(basis.get_axis(0).length(), basis.get_axis(1).length(), basis.get_axis(2).length());
|
||||
Vector3 scale = Vector3(basis.get_column(0).length(), basis.get_column(1).length(), basis.get_column(2).length());
|
||||
|
||||
Transform3D transform;
|
||||
transform.scale(scale);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue