diff options
author | Diego Borghetti <bdiego@gmail.com> | 2010-07-20 20:54:50 +0400 |
---|---|---|
committer | Diego Borghetti <bdiego@gmail.com> | 2010-07-20 20:54:50 +0400 |
commit | a725cac5206a29b8a54763e4daf97e9cc35f2220 (patch) | |
tree | d212dab3731145d13c93cc5b8f8c6072dea0e644 /source/blender/editors/mesh | |
parent | 75913ce446ba43098f78700b985da28b2e48b39f (diff) |
Fix #22905
[#22905] Adding objects with a grid size of <1m results in a 0 size object
The problem here is that the return value of the function
ED_object_new_primitive_matrix is a float, not an int.
This come from an old revision, before the two dia and depth
multiplication was using the function (two call to the same
function). This was change to only call the functio one time
and store the value in the "scale" variable, but the scale
was declare as int, not float.
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r-- | source/blender/editors/mesh/editmesh_add.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editmesh_add.c b/source/blender/editors/mesh/editmesh_add.c index 6cdd1dff1fc..c88e40d9cc3 100644 --- a/source/blender/editors/mesh/editmesh_add.c +++ b/source/blender/editors/mesh/editmesh_add.c @@ -1286,7 +1286,7 @@ static void make_prim_ext(bContext *C, float *loc, float *rot, int enter_editmod Object *obedit= CTX_data_edit_object(C); int newob = 0; float mat[4][4]; - int scale; + float scale; if(obedit==NULL || obedit->type!=OB_MESH) { obedit= ED_object_add_type(C, OB_MESH, loc, rot, FALSE, layer); |