Added a octree implimentation for doing fast locational vertex lookups.

This commit is contained in:
Campbell Barton
2006-07-31 13:28:00 +00:00
parent 00a6a79899
commit 6a48654cce
2 changed files with 333 additions and 2 deletions

View File

@@ -6947,7 +6947,6 @@ static int Mesh_setActiveGroup( BPy_Mesh * self, PyObject * arg )
return 0;
}
static PyObject *Mesh_getTexMesh( BPy_Mesh * self )
{
Mesh *texme= self->mesh->texcomesh;
@@ -6962,7 +6961,7 @@ static int Mesh_setTexMesh( BPy_Mesh * self, PyObject * arg )
{
/*None or Mesh*/
if ( !(arg == Py_None) && !Mesh_CheckPyObject(arg) )
if ( arg != Py_None && !Mesh_CheckPyObject(arg) )
return EXPP_ReturnIntError( PyExc_ValueError,
"texmesh must be a Mesh or None type" );