[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [19475] branches/soc-2008-mxcurioni/source /blender/freestyle/intern/python/BPy_FrsNoise.cpp: * fixed uninitialized variables.

Tamito Kajiyama rd6t-kjym at asahi-net.or.jp
Mon Mar 30 21:25:27 CEST 2009


Revision: 19475
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=19475
Author:   kjym3
Date:     2009-03-30 21:25:27 +0200 (Mon, 30 Mar 2009)

Log Message:
-----------
* fixed uninitialized variables.
* fixed a bug that was introduced in the last commit.

Modified Paths:
--------------
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_FrsNoise.cpp

Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_FrsNoise.cpp
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_FrsNoise.cpp	2009-03-30 18:42:36 UTC (rev 19474)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_FrsNoise.cpp	2009-03-30 19:25:27 UTC (rev 19475)
@@ -152,7 +152,7 @@
 
 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_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_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_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 (");





More information about the Bf-blender-cvs mailing list