Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Swaney <sswaney@centurytel.net>2005-05-22 21:40:00 +0400
committerStephen Swaney <sswaney@centurytel.net>2005-05-22 21:40:00 +0400
commitece00ff04a90aa0aaa37f27185c25b0f7b19e77d (patch)
tree7c1143535c4828b4ca87ddda22df9fd4950e4607 /source/blender/python/api2_2x/NMesh.c
parent910b0f2cda7b8ca45bf16d429bb8df986e69ce1f (diff)
Roll back changes from Big Mathutils Commit on 2005/05/20.
Diffstat (limited to 'source/blender/python/api2_2x/NMesh.c')
-rw-r--r--source/blender/python/api2_2x/NMesh.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/python/api2_2x/NMesh.c b/source/blender/python/api2_2x/NMesh.c
index b735204613e..61e4a6f513c 100644
--- a/source/blender/python/api2_2x/NMesh.c
+++ b/source/blender/python/api2_2x/NMesh.c
@@ -58,15 +58,14 @@
#include "BLI_blenlib.h"
#include "BLI_arithb.h"
#include "MEM_guardedalloc.h"
-#include "BKE_utildefines.h"
#include "blendef.h"
#include "mydevice.h"
#include "Object.h"
+#include "vector.h"
#include "constant.h"
#include "gen_utils.h"
-#include "Mathutils.h"
/* only used for ob.oopsloc at the moment */
#include "DNA_oops_types.h"
@@ -760,11 +759,12 @@ static PyObject *NMVert_getattr( PyObject * self, char *name )
BPy_NMVert *mv = ( BPy_NMVert * ) self;
if( !strcmp( name, "co" ) || !strcmp( name, "loc" ) )
- return newVectorObject(mv->co,3,Py_WRAP);
+ return newVectorProxy( mv->co, 3 );
+
else if( strcmp( name, "no" ) == 0 )
- return newVectorObject(mv->no,3,Py_WRAP);
+ return newVectorProxy( mv->no, 3 );
else if( strcmp( name, "uvco" ) == 0 )
- return newVectorObject(mv->uvco,3,Py_WRAP);
+ return newVectorProxy( mv->uvco, 3 );
else if( strcmp( name, "index" ) == 0 )
return PyInt_FromLong( mv->index );
else if( strcmp( name, "sel" ) == 0 )