[Python-ogre-commit] SF.net SVN: python-ogre:[758] trunk/python-ogre
Brought to you by:
andy_miller,
roman_yakovenko
From: <and...@us...> - 2008-10-15 23:47:25
|
Revision: 758 http://python-ogre.svn.sourceforge.net/python-ogre/?rev=758&view=rev Author: andy_miller Date: 2008-10-15 23:47:18 +0000 (Wed, 15 Oct 2008) Log Message: ----------- Fix to makeTriangleMeshGeom function in Ogreode Modified Paths: -------------- trunk/python-ogre/ChangeLog.txt trunk/python-ogre/code_generators/ogreode/hand_made_wrappers.py Modified: trunk/python-ogre/ChangeLog.txt =================================================================== --- trunk/python-ogre/ChangeLog.txt 2008-10-14 14:11:52 UTC (rev 757) +++ trunk/python-ogre/ChangeLog.txt 2008-10-15 23:47:18 UTC (rev 758) @@ -1,5 +1,6 @@ xxxx xx 2008 : Release 1.6.0 xxxx ================================== +Fixed to smart pointer handling in Ogre -- getting clever about detecting them as arguments as well as return types Fixed QuickGui with static consts not having default value and causing a boost load error Removed constant 'vars' and replaced them with properties that return a copy of the object. Specifically ZERO, UNIT_X, UNIT_Y, UNIT_Z, Black, White, Red, Green, Blue in Classes ColourValue, MatrixX, Quaternion and VectorX. Modified: trunk/python-ogre/code_generators/ogreode/hand_made_wrappers.py =================================================================== --- trunk/python-ogre/code_generators/ogreode/hand_made_wrappers.py 2008-10-14 14:11:52 UTC (rev 757) +++ trunk/python-ogre/code_generators/ogreode/hand_made_wrappers.py 2008-10-15 23:47:18 UTC (rev 758) @@ -93,10 +93,10 @@ Triangles[index] = bp::extract<OgreOde::TriangleIndex> (indices[index]); } - ret = &OgreOde::TriangleMeshGeometry ( Vectors, vertex_count, Triangles, index_count, world, space ); + ret = new OgreOde::TriangleMeshGeometry ( Vectors, vertex_count, Triangles, index_count, world, space ); delete [] Vectors; delete [] Triangles; - return ret; + return ( ret ); } @@ -127,7 +127,7 @@ Triangles[index] = boost::python::extract<unsigned int> (indices[index]); } - ret = &OgreOde::ConvexGeometry ( Vectors, vertex_count, Triangles, index_count, world, space ); + ret = new OgreOde::ConvexGeometry ( Vectors, vertex_count, Triangles, index_count, world, space ); delete [] Vectors; delete [] Triangles; return ret; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |