[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [19609] branches/soc-2008-mxcurioni/source /blender/freestyle/intern/app_blender/FRS_freestyle.cpp: Made the calculation of the number of available style modules more robust

Maxime Curioni maxime.curioni at gmail.com
Wed Apr 8 22:19:22 CEST 2009


Revision: 19609
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=19609
Author:   mxcurioni
Date:     2009-04-08 22:19:20 +0200 (Wed, 08 Apr 2009)

Log Message:
-----------
Made the calculation of the number of available style modules more robust

Modified Paths:
--------------
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/app_blender/FRS_freestyle.cpp

Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/app_blender/FRS_freestyle.cpp
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/app_blender/FRS_freestyle.cpp	2009-04-08 20:10:27 UTC (rev 19608)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/app_blender/FRS_freestyle.cpp	2009-04-08 20:19:20 UTC (rev 19609)
@@ -227,6 +227,9 @@
 	
 	int displayed_layer_count( SceneRenderLayer* srl ) {
 		int count = 0;
+		
+		if( panelConfig->layers.find(srl) == panelConfig->layers.end() )
+			return 0;
 
 		for( StyleModuleConf* module_conf = (StyleModuleConf *)panelConfig->modules[srl]->first; module_conf; module_conf = module_conf->next ) {
 			if( module_conf->is_displayed )





More information about the Bf-blender-cvs mailing list