Reverted fix that makes sense for collision_solver_2d_sat but not for the 3d version

(original commit: aab8da25ad)

Fixes #30886
This commit is contained in:
PouleyKetchoupp 2019-07-31 17:36:09 +02:00
parent c9a1a69ad6
commit 53ac260d19

View file

@ -274,8 +274,8 @@ static void _generate_contacts_from_supports(const Vector3 *p_points_A, int p_po
points_B = p_points_B;
}
int version_A = (pointcount_A > 2 ? 2 : pointcount_A) - 1;
int version_B = (pointcount_B > 2 ? 2 : pointcount_B) - 1;
int version_A = (pointcount_A > 3 ? 3 : pointcount_A) - 1;
int version_B = (pointcount_B > 3 ? 3 : pointcount_B) - 1;
GenerateContactsFunc contacts_func = generate_contacts_func_table[version_A][version_B];
ERR_FAIL_COND(!contacts_func);