Scripts:
- Fixes by Jean-Michel Soler: mod_ai2obj.py, mod_svg2obj.py; - Fixes by Campbell Barton: obj_import.py; - Small fix to mod_meshtools.py (fixes bug #1605: http://projects.blender.org/tracker/?func=detail&atid=125&aid=1605&group_id=9); - Updates by Jean-Baptiste (Jiba) to his blender2cal3d.py; - Updates to all his import / export scripts (added doc data) by Anthony D'Agostino; - Update to off_import: support for uv data, by Arne Schmitz. BPython: - Removed Object.get and .getSelected (deprecated long ago, we use .Get and .GetSelected) -- fixes #1861: http://projects.blender.org/tracker/?func=detail&atid=125&aid=1861&group_id=9 - Applied patch by Michael Reimpell: quat.c - fix for wrong initialization with newQuaternionObject; Mathutils documentation improvements. - Stani reported a wrong return msg in IpoCurve.Get (that is unimplemented). Thanks to all coders mentioned above!
This commit is contained in:
@@ -57,9 +57,7 @@
|
||||
/*****************************************************************************/
|
||||
static PyObject *M_Object_New( PyObject * self, PyObject * args );
|
||||
PyObject *M_Object_Get( PyObject * self, PyObject * args );
|
||||
PyObject *M_Object_get( PyObject * self, PyObject * args );
|
||||
static PyObject *M_Object_GetSelected( PyObject * self, PyObject * args );
|
||||
static PyObject *M_Object_getSelected( PyObject * self, PyObject * args );
|
||||
|
||||
/*****************************************************************************/
|
||||
/* The following string definitions are used for documentation strings. */
|
||||
@@ -90,12 +88,8 @@ struct PyMethodDef M_Object_methods[] = {
|
||||
M_Object_New_doc},
|
||||
{"Get", ( PyCFunction ) M_Object_Get, METH_VARARGS,
|
||||
M_Object_Get_doc},
|
||||
{"get", ( PyCFunction ) M_Object_get, METH_VARARGS,
|
||||
M_Object_Get_doc},
|
||||
{"GetSelected", ( PyCFunction ) M_Object_GetSelected, METH_VARARGS,
|
||||
M_Object_GetSelected_doc},
|
||||
{"getSelected", ( PyCFunction ) M_Object_getSelected, METH_VARARGS,
|
||||
M_Object_GetSelected_doc},
|
||||
{NULL, NULL, 0, NULL}
|
||||
};
|
||||
|
||||
@@ -516,21 +510,9 @@ PyObject *M_Object_Get( PyObject * self, PyObject * args )
|
||||
}
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Function: M_Object_get */
|
||||
/* Python equivalent: Blender.Object.get */
|
||||
/*****************************************************************************/
|
||||
PyObject *M_Object_get( PyObject * self, PyObject * args )
|
||||
{
|
||||
PyErr_Warn( PyExc_DeprecationWarning,
|
||||
"The Object.get() function will be removed in Blender 2.29\n"
|
||||
"Please update the script to use Object.Get" );
|
||||
return ( M_Object_Get( self, args ) );
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Function: M_Object_GetSelected */
|
||||
/* Python equivalent: Blender.Object.getSelected */
|
||||
/* Python equivalent: Blender.Object.GetSelected */
|
||||
/*****************************************************************************/
|
||||
static PyObject *M_Object_GetSelected( PyObject * self, PyObject * args )
|
||||
{
|
||||
@@ -583,19 +565,6 @@ static PyObject *M_Object_GetSelected( PyObject * self, PyObject * args )
|
||||
return ( list );
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Function: M_Object_getSelected */
|
||||
/* Python equivalent: Blender.Object.getSelected */
|
||||
/*****************************************************************************/
|
||||
static PyObject *M_Object_getSelected( PyObject * self, PyObject * args )
|
||||
{
|
||||
PyErr_Warn( PyExc_DeprecationWarning,
|
||||
"The Object.getSelected() function will be removed in "
|
||||
"Blender 2.29\n"
|
||||
"Please update the script to use Object.GetSelected" );
|
||||
return ( M_Object_GetSelected( self, args ) );
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Function: initObject */
|
||||
/*****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user