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-30 23:25:27 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2009-03-30 23:25:27 +0400
commit3c60dd404ef7d715d4633823afb3963b8be1b2ac (patch)
treeecd8241655ea71cf61e04988cb416d9e3a2b1854 /source/blender/freestyle/intern/python
parenta377b74638245f8eb1a956c9840e16a448de553e (diff)
* fixed uninitialized variables.
* fixed a bug that was introduced in the last commit.
Diffstat (limited to 'source/blender/freestyle/intern/python')
-rw-r--r--source/blender/freestyle/intern/python/BPy_FrsNoise.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/freestyle/intern/python/BPy_FrsNoise.cpp b/source/blender/freestyle/intern/python/BPy_FrsNoise.cpp
index f27103c1ba2..8fc27ae462d 100644
--- a/source/blender/freestyle/intern/python/BPy_FrsNoise.cpp
+++ b/source/blender/freestyle/intern/python/BPy_FrsNoise.cpp
@@ -152,7 +152,7 @@ PyObject * FrsNoise___repr__(BPy_FrsNoise* self)
PyObject * FrsNoise_turbulence1( BPy_FrsNoise *self , PyObject *args) {
float f1, f2, f3;
- unsigned int i;
+ unsigned int i = 4;
if(!( PyArg_ParseTuple(args, "fff|I", &f1, &f2, &f3, &i) ))
return NULL;
@@ -163,7 +163,7 @@ PyObject * FrsNoise_turbulence1( BPy_FrsNoise *self , PyObject *args) {
PyObject * FrsNoise_turbulence2( BPy_FrsNoise *self , PyObject *args) {
PyObject *obj1;
float f2, f3;
- unsigned int i;
+ unsigned int i = 4;
if(!( PyArg_ParseTuple(args, "O!ff|I", &PyList_Type, &obj1, &f2, &f3, &i) ))
return NULL;
@@ -182,7 +182,7 @@ PyObject * FrsNoise_turbulence2( BPy_FrsNoise *self , PyObject *args) {
PyObject * FrsNoise_turbulence3( BPy_FrsNoise *self , PyObject *args) {
PyObject *obj1;
float f2, f3;
- unsigned int i;
+ unsigned int i = 4;
if(!( PyArg_ParseTuple(args, "O!ff|I", &PyList_Type, &obj1, &f2, &f3, &i) ))
return NULL;
@@ -229,7 +229,7 @@ PyObject * FrsNoise_smoothNoise2( BPy_FrsNoise *self , PyObject *args) {
PyObject * FrsNoise_smoothNoise3( BPy_FrsNoise *self , PyObject *args) {
PyObject *obj;
- if(!( PyArg_ParseTuple(args, "O", &PyList_Type, obj) ))
+ if(!( PyArg_ParseTuple(args, "O", &PyList_Type, &obj) ))
return NULL;
if( PyList_Size(obj) != 3 ) {
stringstream msg("FrsNoise::smoothNoise3() accepts a list of 3 elements (");