diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-12-29 11:57:33 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-12-29 11:57:33 +0300 |
commit | 9ca61ba44d9d953a4553d23cc793863b485f3186 (patch) | |
tree | 5021dacb49762830c9f9255a89066c2d4791b878 /source/blender/python/api2_2x/Scene.c | |
parent | d9e0e883f24070e0d6436f5880615299764f0488 (diff) |
Scene.c - deprecation warning for getScene
bvh_import.py - use old slow method of adding keyframes. setting IPO's was having problems.
Diffstat (limited to 'source/blender/python/api2_2x/Scene.c')
-rw-r--r-- | source/blender/python/api2_2x/Scene.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Scene.c b/source/blender/python/api2_2x/Scene.c index 8e737f1f496..221a2d1adba 100644 --- a/source/blender/python/api2_2x/Scene.c +++ b/source/blender/python/api2_2x/Scene.c @@ -96,6 +96,7 @@ static PyObject *M_Scene_New( PyObject * self, PyObject * args, PyObject * keywords ); static PyObject *M_Scene_Get( PyObject * self, PyObject * args ); static PyObject *M_Scene_GetCurrent( PyObject * self ); +static PyObject *M_Scene_getCurrent_deprecated( PyObject * self ); static PyObject *M_Scene_Unlink( PyObject * self, PyObject * arg ); /*-----------------------Scene module doc strings-----------------------------*/ static char M_Scene_doc[] = "The Blender.Scene submodule"; @@ -115,7 +116,7 @@ struct PyMethodDef M_Scene_methods[] = { {"get", M_Scene_Get, METH_VARARGS, M_Scene_Get_doc}, {"GetCurrent", ( PyCFunction ) M_Scene_GetCurrent, METH_NOARGS, M_Scene_GetCurrent_doc}, - {"getCurrent", ( PyCFunction ) M_Scene_GetCurrent, + {"getCurrent", ( PyCFunction ) M_Scene_getCurrent_deprecated, METH_NOARGS, M_Scene_GetCurrent_doc}, {"Unlink", M_Scene_Unlink, METH_VARARGS, M_Scene_Unlink_doc}, {"unlink", M_Scene_Unlink, METH_VARARGS, M_Scene_Unlink_doc}, @@ -534,6 +535,12 @@ static PyObject *M_Scene_GetCurrent( PyObject * self ) { return Scene_CreatePyObject( ( Scene * ) G.scene ); } +static PyObject *M_Scene_getCurrent_deprecated( PyObject * self ) +{ + printf("Blender.Scene.getCurrent() is deprecated,\n\tuse Blender.Scene.GetCurrent() instead.\n"); + return Scene_CreatePyObject( ( Scene * ) G.scene ); +} + /*-----------------------Scene.Unlink()----------------------------------*/ static PyObject *M_Scene_Unlink( PyObject * self, PyObject * args ) |