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:
authorCampbell Barton <ideasman42@gmail.com>2013-09-11 11:10:15 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-09-11 11:10:15 +0400
commit2f6c748bb9eabbd6c3e54d45091b0381d6bc3556 (patch)
tree0072fd3c063e0a966ee9baee1f2870d8c0b3eda0 /source/blender/python/mathutils/mathutils_geometry.c
parente0b2111942e7990557bd87f94fcedc657d6d3b92 (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/mathutils_geometry.c')
-rw-r--r--source/blender/python/mathutils/mathutils_geometry.c6
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)
{