Fix #32219: Inconsistent influence of Units Scale on new objects
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 19 Oct 2012 12:53:03 +0000 (12:53 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Fri, 19 Oct 2012 12:53:03 +0000 (12:53 +0000)
commita75f11d03678b094d608382c50d0bb299c53ed1c
treec7b30eb780bfe1203fd36419a9d58e8b4cba085b
parent3a41ab73ff4e480fe5b86c2845f0fb4f9df113d7
Fix #32219: Inconsistent influence of Units Scale on new objects

Made it so meshes, curves, surfaces and metaballs are scaling to a grid cell size,
which makes them behave consistently now.

There're still issues to be resolved still:

- Lattice is not scaled to grid cell size yet, it uses slightly different add
  function which makes scaling a bit tricky and hacky. Would prefer to do a
  bit bigger refactor here, so it's a TODO for now.

- Cameras, speakers and other helpers are not scaling. They don't have data
  on which scale could be applied and perhaps it should be some kind of draw
  scale. Also would consider it's a TODO for now.
release/scripts/modules/bpy_extras/object_utils.py
release/scripts/startup/bl_operators/add_mesh_torus.py
source/blender/editors/curve/editcurve.c
source/blender/editors/include/ED_mball.h
source/blender/editors/include/ED_object.h
source/blender/editors/mesh/editmesh_add.c
source/blender/editors/metaball/mball_edit.c
source/blender/editors/object/object_add.c
source/blender/makesrna/intern/rna_space.c