Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 2266126927cb5f5657880b7ea2027595 > files > 23

blender-2.47-2.1mdv2009.0.src.rpm

--- blender-20080405/source/blender/yafray/intern/export_Plugin.cpp.yafsafe	2008-04-05 16:10:21.000000000 +0200
+++ blender-20080405/source/blender/yafray/intern/export_Plugin.cpp	2008-04-05 16:12:00.000000000 +0200
@@ -192,7 +192,7 @@
 			cerr << "Error loading yafray plugin: " << PIL_dynlib_get_error_as_string(handle) << endl;
 			return false;
 		}
-		yafrayGate = constructor(re->r.threads, YafrayPluginPath());
+		yafrayGate = constructor(re->r.threads < 1 ? 1 : re->r.threads, YafrayPluginPath());
 		
 		cout << "YafRay plugin loaded" << endl;
 		plugin_loaded = true;