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/UnaryFunction1D/UnaryFunction1D_void
parentd4ff63fe20d912a72a7695852a204ab3f1d3dce7 (diff)
Fixed argument checking in __init__ methods of Interface1D, Predicates,
Functions, and StrokeShader types.
Diffstat (limited to 'source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_void')
-rw-r--r--source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_void/BPy_ChainingTimeStampF1D.cpp6
-rw-r--r--source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_void/BPy_IncrementChainingTimeStampF1D.cpp6
-rw-r--r--source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_void/BPy_TimeStampF1D.cpp6
3 files changed, 12 insertions, 6 deletions
diff --git a/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_void/BPy_ChainingTimeStampF1D.cpp b/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_void/BPy_ChainingTimeStampF1D.cpp
index 4ea90ad9f0d..9eaa449dd13 100644
--- a/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_void/BPy_ChainingTimeStampF1D.cpp
+++ b/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_void/BPy_ChainingTimeStampF1D.cpp
@@ -11,7 +11,7 @@ extern "C" {
///////////////////////////////////////////////////////////////////////////////////////////
/*--------------- Python API function prototypes for ChainingTimeStampF1D instance -----------*/
- static int ChainingTimeStampF1D___init__(BPy_ChainingTimeStampF1D* self);
+ static int ChainingTimeStampF1D___init__(BPy_ChainingTimeStampF1D* self, PyObject *args);
/*-----------------------BPy_ChainingTimeStampF1D type definition ------------------------------*/
@@ -100,8 +100,10 @@ PyTypeObject ChainingTimeStampF1D_Type = {
//------------------------INSTANCE METHODS ----------------------------------
-int ChainingTimeStampF1D___init__( BPy_ChainingTimeStampF1D* self )
+int ChainingTimeStampF1D___init__( BPy_ChainingTimeStampF1D* self, PyObject *args )
{
+ if( !PyArg_ParseTuple(args, "") )
+ return -1;
self->py_uf1D_void.uf1D_void = new Functions1D::ChainingTimeStampF1D();
return 0;
}
diff --git a/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_void/BPy_IncrementChainingTimeStampF1D.cpp b/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_void/BPy_IncrementChainingTimeStampF1D.cpp
index 509a1e34195..960a3d74a3a 100644
--- a/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_void/BPy_IncrementChainingTimeStampF1D.cpp
+++ b/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_void/BPy_IncrementChainingTimeStampF1D.cpp
@@ -11,7 +11,7 @@ extern "C" {
///////////////////////////////////////////////////////////////////////////////////////////
/*--------------- Python API function prototypes for IncrementChainingTimeStampF1D instance -----------*/
- static int IncrementChainingTimeStampF1D___init__(BPy_IncrementChainingTimeStampF1D* self);
+ static int IncrementChainingTimeStampF1D___init__(BPy_IncrementChainingTimeStampF1D* self, PyObject *args);
/*-----------------------BPy_IncrementChainingTimeStampF1D type definition ------------------------------*/
@@ -100,8 +100,10 @@ PyTypeObject IncrementChainingTimeStampF1D_Type = {
//------------------------INSTANCE METHODS ----------------------------------
-int IncrementChainingTimeStampF1D___init__( BPy_IncrementChainingTimeStampF1D* self )
+int IncrementChainingTimeStampF1D___init__( BPy_IncrementChainingTimeStampF1D* self, PyObject *args )
{
+ if( !PyArg_ParseTuple(args, "") )
+ return -1;
self->py_uf1D_void.uf1D_void = new Functions1D::IncrementChainingTimeStampF1D();
return 0;
}
diff --git a/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_void/BPy_TimeStampF1D.cpp b/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_void/BPy_TimeStampF1D.cpp
index 516f6cada60..dbfc4fc8638 100644
--- a/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_void/BPy_TimeStampF1D.cpp
+++ b/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_void/BPy_TimeStampF1D.cpp
@@ -11,7 +11,7 @@ extern "C" {
///////////////////////////////////////////////////////////////////////////////////////////
/*--------------- Python API function prototypes for TimeStampF1D instance -----------*/
- static int TimeStampF1D___init__(BPy_TimeStampF1D* self);
+ static int TimeStampF1D___init__(BPy_TimeStampF1D* self, PyObject *args);
/*-----------------------BPy_TimeStampF1D type definition ------------------------------*/
@@ -100,8 +100,10 @@ PyTypeObject TimeStampF1D_Type = {
//------------------------INSTANCE METHODS ----------------------------------
-int TimeStampF1D___init__( BPy_TimeStampF1D* self )
+int TimeStampF1D___init__( BPy_TimeStampF1D* self, PyObject *args )
{
+ if( !PyArg_ParseTuple(args, "") )
+ return -1;
self->py_uf1D_void.uf1D_void = new Functions1D::TimeStampF1D();
return 0;
}