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:
authorCampbell Barton <ideasman42@gmail.com>2008-03-11 12:00:09 +0300
committerCampbell Barton <ideasman42@gmail.com>2008-03-11 12:00:09 +0300
commit294f884a7d1f61440a5d14cfa25ca2c8450f7096 (patch)
treeafbb1abf74a1807cea3211ab6405bed8cd9b328c /source/blender/python/api2_2x
parenteed5a7ec33a8638da10141d4c79f4e23ac11c1f4 (diff)
fix for cam.setScale(), cam.setClipStart(), cam.setClipEnd() and
cam.setDrawSize(), they would raise errors when setting ints. but used not to. better tooltips for Uv Stretch
Diffstat (limited to 'source/blender/python/api2_2x')
-rw-r--r--source/blender/python/api2_2x/Camera.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/python/api2_2x/Camera.c b/source/blender/python/api2_2x/Camera.c
index bd1e7932f5c..5558b179e23 100644
--- a/source/blender/python/api2_2x/Camera.c
+++ b/source/blender/python/api2_2x/Camera.c
@@ -1,5 +1,5 @@
/*
- * $Id: Camera.c 12078 2007-09-18 06:41:29Z campbellbarton $
+ * $Id$
*
* ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
*
@@ -478,7 +478,7 @@ static PyObject *Camera_oldsetLens( BPy_Camera * self, PyObject * value )
{
float param = PyFloat_AsDouble(value);
- if( !PyFloat_Check(value) )
+ if (PyErr_Occurred())
return EXPP_ReturnPyObjError( PyExc_TypeError,
"expected float argument" );
@@ -493,7 +493,7 @@ static PyObject *Camera_oldsetScale( BPy_Camera * self, PyObject * value )
{
float param = PyFloat_AsDouble(value);
- if( !PyFloat_Check(value) )
+ if (PyErr_Occurred())
return EXPP_ReturnPyObjError( PyExc_TypeError,
"expected float argument" );
@@ -508,7 +508,7 @@ static PyObject *Camera_oldsetClipStart( BPy_Camera * self, PyObject * value )
{
float param = PyFloat_AsDouble(value);
- if( !PyFloat_Check(value) )
+ if (PyErr_Occurred())
return EXPP_ReturnPyObjError( PyExc_TypeError,
"expected float argument" );
@@ -523,7 +523,7 @@ static PyObject *Camera_oldsetClipEnd( BPy_Camera * self, PyObject * value )
{
float param = PyFloat_AsDouble(value);
- if( !PyFloat_Check(value) )
+ if (PyErr_Occurred())
return EXPP_ReturnPyObjError( PyExc_TypeError,
"expected float argument" );
@@ -538,7 +538,7 @@ static PyObject *Camera_oldsetDrawSize( BPy_Camera * self, PyObject * value )
{
float param = PyFloat_AsDouble(value);
- if( !PyFloat_Check(value) )
+ if (PyErr_Occurred())
return EXPP_ReturnPyObjError( PyExc_TypeError,
"expected float argument" );