Fix #31230: Grid primitive changes size with changing resolution
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 2 May 2012 09:03:15 +0000 (09:03 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 2 May 2012 09:03:15 +0000 (09:03 +0000)
source/blender/bmesh/operators/bmo_primitive.c

index a08532fde3ae8dc239e6360660eacf8200697baa..08cd3835b2d238a0cf035eb8bb3fb2ac9633ff63 100644 (file)
@@ -260,6 +260,7 @@ void bmo_create_grid_exec(BMesh *bm, BMOperator *op)
        }
 
        /* extrude and translate */
+       phid = 2.0f / ((float)seg - 1);
        vec[0] = vec[2] = 0.0f;
        vec[1] = dia * phid;
        mul_mat3_m4_v3(mat, vec);