[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [46255] branches/soc-2008-mxcurioni/ release/scripts/freestyle/style_modules/parameter_editor.py: Fix for the Selection by Group not working correctly when the specified group was empty .

Tamito Kajiyama rd6t-kjym at asahi-net.or.jp
Fri May 4 02:37:07 CEST 2012


Revision: 46255
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=46255
Author:   kjym3
Date:     2012-05-04 00:37:06 +0000 (Fri, 04 May 2012)
Log Message:
-----------
Fix for the Selection by Group not working correctly when the specified group was empty.
Problem report by vicentecarro, with an example .blend file to reproduce the issue. Thanks!

Modified Paths:
--------------
    branches/soc-2008-mxcurioni/release/scripts/freestyle/style_modules/parameter_editor.py

Modified: branches/soc-2008-mxcurioni/release/scripts/freestyle/style_modules/parameter_editor.py
===================================================================
--- branches/soc-2008-mxcurioni/release/scripts/freestyle/style_modules/parameter_editor.py	2012-05-04 00:16:16 UTC (rev 46254)
+++ branches/soc-2008-mxcurioni/release/scripts/freestyle/style_modules/parameter_editor.py	2012-05-04 00:37:06 UTC (rev 46255)
@@ -1092,7 +1092,7 @@
         selection_criteria.append(upred)
     # prepare selection criteria by group of objects
     if lineset.select_by_group:
-        if lineset.group is not None and len(lineset.group.objects) > 0:
+        if lineset.group is not None:
             names = dict((ob.name, True) for ob in lineset.group.objects)
             upred = ObjectNamesUP1D(names, lineset.group_negation == 'EXCLUSIVE')
             selection_criteria.append(upred)




More information about the Bf-blender-cvs mailing list