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 )
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs