diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2014-03-24 20:39:17 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2014-03-24 20:39:54 +0400 |
commit | e9a64e27706721105530f82307e36cc45930531d (patch) | |
tree | 0549de3bf15cde966099585c7c22054d31abd7f5 /source/blender/python | |
parent | 3b68c6304df968c5d27f7276526f3e407519f247 (diff) |
Fix T39392: Python bindings for geometry.box_pack_2d() return invalid total height
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/mathutils/mathutils_geometry.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/mathutils/mathutils_geometry.c b/source/blender/python/mathutils/mathutils_geometry.c index 16f51bdd34f..142e5cadfd1 100644 --- a/source/blender/python/mathutils/mathutils_geometry.c +++ b/source/blender/python/mathutils/mathutils_geometry.c @@ -1515,7 +1515,7 @@ static PyObject *M_Geometry_box_pack_2d(PyObject *UNUSED(self), PyObject *boxlis ret = PyTuple_New(2); PyTuple_SET_ITEM(ret, 0, PyFloat_FromDouble(tot_width)); - PyTuple_SET_ITEM(ret, 1, PyFloat_FromDouble(tot_width)); + PyTuple_SET_ITEM(ret, 1, PyFloat_FromDouble(tot_height)); return ret; } |