diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-09-11 11:10:15 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-09-11 11:10:15 +0400 |
commit | 2f6c748bb9eabbd6c3e54d45091b0381d6bc3556 (patch) | |
tree | 0072fd3c063e0a966ee9baee1f2870d8c0b3eda0 /source/blender/python/mathutils | |
parent | e0b2111942e7990557bd87f94fcedc657d6d3b92 (diff) |
fix [#36020] SmartUV Project is messy on a cube
was using very simple/stupid check to rotate us islands, replace with box_fit_2d() function.
missed docstring last commit.
Diffstat (limited to 'source/blender/python/mathutils')
-rw-r--r-- | source/blender/python/mathutils/mathutils_geometry.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/python/mathutils/mathutils_geometry.c b/source/blender/python/mathutils/mathutils_geometry.c index 06aa0cb2753..6052d5cb992 100644 --- a/source/blender/python/mathutils/mathutils_geometry.c +++ b/source/blender/python/mathutils/mathutils_geometry.c @@ -1507,12 +1507,12 @@ static PyObject *M_Geometry_box_pack_2d(PyObject *UNUSED(self), PyObject *boxlis PyDoc_STRVAR(M_Geometry_box_fit_2d_doc, ".. function:: box_fit_2d(points)\n" "\n" -" Returns a list of indices into the list given\n" +" Returns an angle that best fits the points to an axis aligned rectangle\n" "\n" " :arg points: list of 2d points.\n" " :type points: list\n" -" :return: a list of indices\n" -" :rtype: list of ints\n" +" :return: angle\n" +" :rtype: float\n" ); static PyObject *M_Geometry_box_fit_2d(PyObject *UNUSED(self), PyObject *pointlist) { |