[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12013] trunk/blender/source/blender/ python/api2_2x/Mesh.c: -> Fix for Mesh Properties Python API
Geoffrey Bantle
hairbat at yahoo.com
Tue Sep 11 22:58:00 CEST 2007
Revision: 12013
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=12013
Author: briggs
Date: 2007-09-11 22:58:00 +0200 (Tue, 11 Sep 2007)
Log Message:
-----------
-> Fix for Mesh Properties Python API
When switching Mesh properties over to METH_O from METH_VARARGS certain method definitions
didn't get switched over correctly, causing calls to mesh property functions to fail.
Modified Paths:
--------------
trunk/blender/source/blender/python/api2_2x/Mesh.c
Modified: trunk/blender/source/blender/python/api2_2x/Mesh.c
===================================================================
--- trunk/blender/source/blender/python/api2_2x/Mesh.c 2007-09-11 17:25:26 UTC (rev 12012)
+++ trunk/blender/source/blender/python/api2_2x/Mesh.c 2007-09-11 20:58:00 UTC (rev 12013)
@@ -1433,7 +1433,7 @@
}
static struct PyMethodDef BPy_MVert_methods[] = {
- {"getProperty", (PyCFunction)MVert_getProp, METH_VARARGS,
+ {"getProperty", (PyCFunction)MVert_getProp, METH_O,
"get property indicated by name"},
{"setProperty", (PyCFunction)MVert_setProp, METH_VARARGS,
"set property indicated by name"},
@@ -2720,7 +2720,7 @@
}
static struct PyMethodDef BPy_MEdge_methods[] = {
- {"getProperty", (PyCFunction)MEdge_getProp, METH_VARARGS,
+ {"getProperty", (PyCFunction)MEdge_getProp, METH_O,
"get property indicated by name"},
{"setProperty", (PyCFunction)MEdge_setProp, METH_VARARGS,
"set property indicated by name"},
@@ -4793,7 +4793,7 @@
}
static struct PyMethodDef BPy_MFace_methods[] = {
- {"getProperty", (PyCFunction)MFace_getProp, METH_VARARGS,
+ {"getProperty", (PyCFunction)MFace_getProp, METH_O,
"get property indicated by name"},
{"setProperty", (PyCFunction)MFace_setProp, METH_VARARGS,
"set property indicated by name"},
More information about the Bf-blender-cvs
mailing list