Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2009-03-21 02:19:47 +0300
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2009-03-21 02:19:47 +0300
commitc1611c346ff4d8f88f1dcba8e5fada71930551bb (patch)
tree22eab5eeb46843ab8d29c330eb2b3183fc814360 /source/blender/freestyle/intern/python/Director.cpp
parenta0682124459d870e53f1bc5d9b1d2930e5a907f3 (diff)
Fixed editing errors in the last commit...
Diffstat (limited to 'source/blender/freestyle/intern/python/Director.cpp')
-rw-r--r--source/blender/freestyle/intern/python/Director.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/freestyle/intern/python/Director.cpp b/source/blender/freestyle/intern/python/Director.cpp
index ef8ae063024..84560de67a8 100644
--- a/source/blender/freestyle/intern/python/Director.cpp
+++ b/source/blender/freestyle/intern/python/Director.cpp
@@ -59,7 +59,8 @@ int Director_BPy_BinaryPredicate0D___call__( PyObject *obj, Interface0D& i1, Int
// 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 @@ int Director_BPy_UnaryPredicate0D___call__( PyObject *obj, Interface0DIterator&
// 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)