Fix T86701: Geometry nodes Cube and UV Sphere mesh size

The size in the transform matrices was extra, since it is also
passed as an argument to the BMesh operators.

Differential Revision: https://developer.blender.org/D10763
This commit is contained in:
Pratik Borhade 2021-03-18 17:00:47 -04:00 committed by Hans Goudey
parent 894e8b18e4
commit 7e3efac9a8
Notes: blender-bot 2023-07-10 10:12:37 +02:00
Referenced by issue #86701, Geometry nodes Cube and UV Sphere mesh size
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ namespace blender::nodes {
static Mesh *create_cube_mesh(const float3 location, const float3 rotation, const float size)
{
float4x4 transform;
loc_eul_size_to_mat4(transform.values, location, rotation, float3(size));
loc_eul_size_to_mat4(transform.values, location, rotation, float3(1));
const BMeshCreateParams bmcp = {true};
const BMAllocTemplate allocsize = {8, 12, 24, 6};

View File

@ -74,7 +74,7 @@ static Mesh *create_uv_sphere_mesh_bmesh(const float3 location,
const int rings)
{
float4x4 transform;
loc_eul_size_to_mat4(transform.values, location, rotation, float3(radius));
loc_eul_size_to_mat4(transform.values, location, rotation, float3(1.0f));
const BMeshCreateParams bmcp = {true};
const BMAllocTemplate allocsize = {sphere_vert_total(segments, rings),