Sophie

Sophie

distrib > Mandriva > 2008.0 > x86_64 > by-pkgid > 8c1a96618c5f76e0d4006fa5d8b85d82 > files > 8

blender-2.45-2.1mdv2008.0.src.rpm

--- blender2.42/source/blender/yafray/intern/export_Plugin.cpp.ncpus	2006-07-23 12:10:55.000000000 +0200
+++ blender2.42/source/blender/yafray/intern/export_Plugin.cpp	2006-07-23 12:47:37.000000000 +0200
@@ -189,6 +189,10 @@
 			cerr << "Error loading yafray plugin: " << PIL_dynlib_get_error_as_string(handle) << endl;
 			return false;
 		}
+		
+		/* sometimes YF_numprocs = 0... */
+		if (re->r.YF_numprocs < 1)
+			re->r.YF_numprocs = 1;
 		yafrayGate = constructor(re->r.YF_numprocs, YafrayPluginPath());
 		
 		cout << "YafRay plugin loaded" << endl;