From 83df3545246aada2c98264146efc2cb2cbe0796a Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Tue, 23 Mar 2021 11:05:18 -0400 Subject: Geometry Nodes: Make plane primitive size consistent This means the "Size" input is treated as a "diameter" instead of a "radius", just like the 3D view primitives. --- source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_plane.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/nodes') diff --git a/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_plane.cc b/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_plane.cc index 9bc0521d7d3..eff84d7d1ad 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_plane.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_plane.cc @@ -73,8 +73,8 @@ static Mesh *create_plane_mesh(const int verts_x, const int verts_y, const float MutableSpan polys{mesh->mpoly, mesh->totpoly}; { - const float dx = size * 2.0f / edges_x; - const float dy = size * 2.0f / edges_y; + const float dx = size / edges_x; + const float dy = size / edges_y; float x = -size; for (const int x_index : IndexRange(verts_x)) { float y = -size; -- cgit v1.2.3