Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-03-23 18:05:18 +0300
committerHans Goudey <h.goudey@me.com>2021-03-23 18:05:18 +0300
commit83df3545246aada2c98264146efc2cb2cbe0796a (patch)
treec1597a23cce3ee4f37ef731c863c810a1896e8c9 /source/blender
parent29c0b34b209e4fa0548a1ff0716751f1fcfb51d5 (diff)
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.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_plane.cc4
1 files changed, 2 insertions, 2 deletions
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<MPoly> 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;