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>2007-03-20 10:23:09 +0300
committerCampbell Barton <ideasman42@gmail.com>2007-03-20 10:23:09 +0300
commita51477093b93fdbca69b47165012c762c46c7e34 (patch)
tree2f6d626a46c3c2825d8991373a61f977d2d47c63 /source/blender/python/api2_2x/Blender.c
parent1ebc28bead0c28a505cc972b355b5515c0394b4e (diff)
Geometry.c - rewrote my python box-packer algo in C,
packing 2400 rectanges is about 38x faster. Use the C implimentation in uvcalc_lightmap and uvcalc_smart_project Blender.c - filename returning None raises errors with existing scripts, just return "" so string functions on the filename dont raise an error.
Diffstat (limited to 'source/blender/python/api2_2x/Blender.c')
-rw-r--r--source/blender/python/api2_2x/Blender.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Blender.c b/source/blender/python/api2_2x/Blender.c
index 859cd32d670..324975fb739 100644
--- a/source/blender/python/api2_2x/Blender.c
+++ b/source/blender/python/api2_2x/Blender.c
@@ -308,7 +308,7 @@ static PyObject *Blender_Get( PyObject * self, PyObject * args )
ret = PyInt_FromLong( G.scene->r.efra );
else if( StringEqual( str, "filename" ) ) {
if ( strstr(G.main->name, ".B.blend") != 0)
- ret = EXPP_incr_ret( Py_None );
+ ret = PyString_FromString("");
else
ret = PyString_FromString(G.main->name);
}