Revision: 19344
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=19344
Author: kjym3
Date: 2009-03-21 00:19:47 +0100 (Sat, 21 Mar 2009)
Log Message:
-----------
Fixed editing errors in the last commit...
Modified Paths:
--------------
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Director.cpp
Modified:
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Director.cpp
===================================================================
---
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Director.cpp
2009-03-20 23:11:44 UTC (rev 19343)
+++
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Director.cpp
2009-03-20 23:19:47 UTC (rev 19344)
@@ -59,7 +59,8 @@
// BinaryPredicate1D: __call__
int Director_BPy_BinaryPredicate1D___call__( PyObject *obj, Interface1D& i1,
Interface1D& i2) {
- PyObject *arg1, *arg2;
+ PyObject *arg1 = BPy_Interface1D_from_Interface1D(i1);
+ PyObject *arg2 = BPy_Interface1D_from_Interface1D(i2);
PyObject *result = PyObject_CallMethod( obj, "__call__", "OO", arg1,
arg2 );
Py_DECREF(arg1);
Py_DECREF(arg2);
@@ -86,7 +87,7 @@
// UnaryPredicate1D: __call__
int Director_BPy_UnaryPredicate1D___call__( PyObject *obj, Interface1D& if1D) {
- PyObject *arg;
+ PyObject *arg = BPy_Interface1D_from_Interface1D(if1D);
PyObject *result = PyObject_CallMethod( obj, "__call__", "O", arg );
Py_DECREF(arg);
if (!result)
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs