Fix normals of PrismMesh

(cherry picked from commit c8e402324e)
This commit is contained in:
John Wigg 2021-05-16 23:01:53 +02:00 committed by Rémi Verschelde
parent a2b4093a50
commit 4601328542
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -1167,7 +1167,7 @@ void PrismMesh::_create_mesh_array(Array &p_arr) const {
Vector3 normal_left, normal_right;
normal_left = Vector3(-size.y, size.x * left_to_right, 0.0);
normal_right = Vector3(size.y, size.x * left_to_right, 0.0);
normal_right = Vector3(size.y, size.x * (1.0 - left_to_right), 0.0);
normal_left.normalize();
normal_right.normalize();