Undo revision 23130 which was a merge with 2.5, a messy one because I did something...
[blender.git] / source / gameengine / Expressions / Value.cpp
index 130317d..04bcc3a 100644 (file)
@@ -62,9 +62,17 @@ PyTypeObject CValue::Type = {
 };
 
 PyMethodDef CValue::Methods[] = {
+       { "getName", (PyCFunction) CValue::sPyGetName, METH_NOARGS},
        {NULL,NULL} //Sentinel
 };
 
+PyObject* CValue::PyGetName()
+{
+       ShowDeprecationWarning("getName()", "the name property");
+       
+       return PyUnicode_FromString(this->GetName());
+}
+
 /*#define CVALUE_DEBUG*/
 #ifdef CVALUE_DEBUG
 int gRefCount;