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:
authorDiego Borghetti <bdiego@gmail.com>2010-07-20 20:54:50 +0400
committerDiego Borghetti <bdiego@gmail.com>2010-07-20 20:54:50 +0400
commita725cac5206a29b8a54763e4daf97e9cc35f2220 (patch)
treed212dab3731145d13c93cc5b8f8c6072dea0e644 /source/blender/editors/mesh/editmesh_add.c
parent75913ce446ba43098f78700b985da28b2e48b39f (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/editmesh_add.c')
-rw-r--r--source/blender/editors/mesh/editmesh_add.c2
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);