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-08-03 19:19:51 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2009-08-03 19:19:51 +0400
commitff110c17f705976435ee14f2cde9c85f7334a56c (patch)
treeb1748338ca9489ddef1a61ff923b46438ed937ce /source/blender/freestyle/intern/python/BPy_UnaryPredicate0D.cpp
parentd4ff63fe20d912a72a7695852a204ab3f1d3dce7 (diff)
Fixed argument checking in __init__ methods of Interface1D, Predicates,
Functions, and StrokeShader types.
Diffstat (limited to 'source/blender/freestyle/intern/python/BPy_UnaryPredicate0D.cpp')
-rw-r--r--source/blender/freestyle/intern/python/BPy_UnaryPredicate0D.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/freestyle/intern/python/BPy_UnaryPredicate0D.cpp b/source/blender/freestyle/intern/python/BPy_UnaryPredicate0D.cpp
index c914d45e56f..c146760a415 100644
--- a/source/blender/freestyle/intern/python/BPy_UnaryPredicate0D.cpp
+++ b/source/blender/freestyle/intern/python/BPy_UnaryPredicate0D.cpp
@@ -137,6 +137,8 @@ PyMODINIT_FUNC UnaryPredicate0D_Init( PyObject *module )
int UnaryPredicate0D___init__(BPy_UnaryPredicate0D *self, PyObject *args, PyObject *kwds)
{
+ if ( !PyArg_ParseTuple(args, "") )
+ return -1;
self->up0D = new UnaryPredicate0D();
self->up0D->py_up0D = (PyObject *) self;
return 0;