svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r22717:22875
[blender.git] / source / gameengine / Ketsji / KX_MeshProxy.h
index dfc498801a743656d6e82954a98f712a8e427e6d..55684aa5ee9d7358802155dcebad393d4613c74f 100644 (file)
 
 #include "SCA_IObject.h"
 
-class KX_MeshProxy     : public SCA_IObject
+/* utility conversion function */
+bool ConvertPythonToMesh(PyObject * value, class RAS_MeshObject **object, bool py_none_ok, const char *error_prefix);
+
+class KX_MeshProxy     : public CValue
 {
        Py_Header;
 
@@ -48,14 +51,11 @@ public:
        virtual const STR_String &      GetText();
        virtual double          GetNumber();
        virtual RAS_MeshObject* GetMesh() { return m_meshobj; }
-       virtual STR_String      GetName();
-       virtual void            SetName(STR_String name);                                                               // Set the name of the value
-       virtual void            ReplicaSetName(STR_String name);
+       virtual STR_String&     GetName();
+       virtual void            SetName(const char *name);                                                              // Set the name of the value
        virtual CValue*         GetReplica();
 
 // stuff for python integration
-       virtual PyObject*  py_getattro(PyObject *attr);
-       virtual int py_setattro(PyObject *attr, PyObject* value);
 
        KX_PYMETHOD(KX_MeshProxy,GetNumMaterials);      // Deprecated
        KX_PYMETHOD(KX_MeshProxy,GetMaterialName);
@@ -66,7 +66,6 @@ public:
        KX_PYMETHOD(KX_MeshProxy,GetVertexArrayLength);
        KX_PYMETHOD(KX_MeshProxy,GetVertex);
        KX_PYMETHOD(KX_MeshProxy,GetPolygon);
-       KX_PYMETHOD_DOC(KX_MeshProxy, reinstancePhysicsMesh);
        
        static PyObject*        pyattr_get_materials(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef);
        static PyObject * pyattr_get_numMaterials(void * self, const KX_PYATTRIBUTE_DEF * attrdef);