Fix T39392: Python bindings for geometry.box_pack_2d() return invalid total height
authorBastien Montagne <montagne29@wanadoo.fr>
Mon, 24 Mar 2014 16:39:17 +0000 (17:39 +0100)
committerBastien Montagne <montagne29@wanadoo.fr>
Mon, 24 Mar 2014 16:39:54 +0000 (17:39 +0100)
source/blender/python/mathutils/mathutils_geometry.c

index 16f51bdd34f2f649394ab31a9f876eb12e17e6bf..142e5cadfd1a1a7f0a9a87e8ea31247aefd2b4e8 100644 (file)
@@ -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;
 }