From c8e402324e6942a09fd669f67a82567007521262 Mon Sep 17 00:00:00 2001 From: John Wigg <31868812+CaptainProton42@users.noreply.github.com> Date: Sun, 16 May 2021 23:01:53 +0200 Subject: [PATCH] Fix normals of PrismMesh --- scene/resources/primitive_meshes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/resources/primitive_meshes.cpp b/scene/resources/primitive_meshes.cpp index c3d84aeda26..64b43f82c63 100644 --- a/scene/resources/primitive_meshes.cpp +++ b/scene/resources/primitive_meshes.cpp @@ -1133,7 +1133,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();