diff options
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_cube.cc | 2 | ||||
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_uv_sphere.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_cube.cc b/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_cube.cc index 5c32ff6b687..1ef84c7d070 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_cube.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_cube.cc @@ -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}; diff --git a/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_uv_sphere.cc b/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_uv_sphere.cc index e164ad247a3..7b07722fd5a 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_uv_sphere.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_uv_sphere.cc @@ -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), |