made all python types that can do .__copy__(), also do .copy()

added copy function to lamp, texture and ipo types
This commit is contained in:
2007-03-14 03:01:24 +00:00
parent d3ae4b9944
commit 5c5a80f644
14 changed files with 69 additions and 26 deletions

View File

@@ -816,6 +816,8 @@ static PyMethodDef BPy_Material_methods[] = {
"([s1<,s2,s3...>]) - Delete specified scriptlinks from this material."},
{"__copy__", ( PyCFunction ) Material_copy, METH_NOARGS,
"() - Return a copy of the material."},
{"copy", ( PyCFunction ) Material_copy, METH_NOARGS,
"() - Return a copy of the material."},
{NULL, NULL, 0, NULL}
};