[Bf-blender-cvs] [e9a64e2] master: Fix T39392: Python bindings for geometry.box_pack_2d() return invalid total height

Bastien Montagne noreply at git.blender.org
Mon Mar 24 17:40:58 CET 2014


Commit: e9a64e27706721105530f82307e36cc45930531d
Author: Bastien Montagne
Date:   Mon Mar 24 17:39:17 2014 +0100
https://developer.blender.org/rBe9a64e27706721105530f82307e36cc45930531d

Fix T39392: Python bindings for geometry.box_pack_2d() return invalid total height

===================================================================

M	source/blender/python/mathutils/mathutils_geometry.c

===================================================================

diff --git a/source/blender/python/mathutils/mathutils_geometry.c b/source/blender/python/mathutils/mathutils_geometry.c
index 16f51bd..142e5ca 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;
 }




More information about the Bf-blender-cvs mailing list