svn merge -r 21041:21301 https://svn.blender.org/svnroot/bf-blender/branches/blender2...
[blender.git] / source / gameengine / Ketsji / KX_SCA_ReplaceMeshActuator.h
index 1da154cc222ab9977df3fadb047526347a6f8a61..6a68bd88cc5a382dbc3ccd249b8601a500a3db54 100644 (file)
@@ -55,9 +55,7 @@ class KX_SCA_ReplaceMeshActuator : public SCA_IActuator
        KX_SCA_ReplaceMeshActuator(
                SCA_IObject* gameobj, 
                RAS_MeshObject *mesh, 
-               SCA_IScene* scene,
-               PyTypeObject* T=&Type
-       );
+               SCA_IScene* scene);
 
        ~KX_SCA_ReplaceMeshActuator(
        );
@@ -69,12 +67,12 @@ class KX_SCA_ReplaceMeshActuator : public SCA_IActuator
        virtual bool 
        Update();
 
-       virtual PyObject*  
-       _getattr(
-               const STR_String& attr
-       );
        void    InstantReplaceMesh();
 
+       /* python api */
+       static PyObject* pyattr_get_mesh(void *self, const struct KX_PYATTRIBUTE_DEF *attrdef);
+       static int pyattr_set_mesh(void *self, const struct KX_PYATTRIBUTE_DEF *attrdef, PyObject *value);
+
        /* 1. setMesh */
        KX_PYMETHOD_DOC_O(KX_SCA_ReplaceMeshActuator,SetMesh);
        KX_PYMETHOD_DOC(KX_SCA_ReplaceMeshActuator,getMesh);